FNFBoyfriendBot-v5.0.0-beta

This commit is contained in:
4Parker02991
2023-12-17 19:55:27 +00:00
commit 10df482817
185 changed files with 21565 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
function inject (bot, options) {
bot.cloop = {
list: [],
add (command, interval) {
this.list.push({ timer: setInterval(() => bot.core.run(command), interval), command, interval })
},
remove (index) {
clearInterval(this.list[index].timer)
},
clear () {
for (const cloop of this.list) clearInterval(cloop.timer)
this.list = []
}
}
}
module.exports = inject