MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / startBotInterval

Method startBotInterval

lib/modCheckLib.js:132–138  ·  view source on GitHub ↗

* Start the bot if it's not running * @param {boolean} forceRunNow Force run it once now

(forceRunNow = false)

Source from the content-addressed store, hash-verified

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()

Callers 1

addCollectionMethod · 0.95

Calls 1

#botRunnerMethod · 0.95

Tested by

no test coverage detected