* Start the bot if it's not running * @param {boolean} forceRunNow Force run it once now
(forceRunNow = false)
| 130 | * @param {boolean} forceRunNow Force run it once now |
| 131 | */ |
| 132 | startBotInterval(forceRunNow = false) { |
| 133 | if ( this.#botDisabled ) { return } |
| 134 | if ( forceRunNow ) { this.#botRunner() } |
| 135 | if ( this.#botInterval === null ) { |
| 136 | this.#botInterval = setInterval(() => { this.#botRunner() }, 15000) |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | #botRunner() { |
| 141 | const thisRun = Date.now() |
no test coverage detected