IRC Bot Scheduler Job

Last modified by Vincent Massol on 2026/06/11 01:46

IRC Bot Scheduler Job

Starts the IRC bot if it's not already started.

0 * * * * ?
The script is the code that will be executed when the job is triggered by the scheduler. It should be written in the Groovy language. The XWiki API is available through the xwiki and context pre-defined variables.
def botManager = services.get("ircbot")
if (botManager && !botManager.isStarted()) {
  botManager.start(false)
}

Back to the job list

Get Connected