FNFBoyfriendBot v5.0.5 Build:360 Codename:QT KB Termination

This commit is contained in:
4Parker02991
2024-01-27 02:24:08 +00:00
parent 0b49eb1e4f
commit 3cfcc0f568
46 changed files with 1109 additions and 465 deletions
+9 -1
View File
@@ -3,9 +3,17 @@ function command_loop_manager (bot, options) {
list: [],
add (command, interval) {
this.list.push({ timer: setInterval(() => bot.core.run(command), interval), command, interval })
this.list.push({ timer: setInterval(() => bot.core.run(command), interval), command, interval })
},
/*
if (message.startsWith('/')) {
bot.command(message.substring(1))
return
}
bot.chat(message)
*/
remove (index) {
clearInterval(this.list[index].timer)
},