Port the chat queue

This commit is contained in:
7cc5c4f330d47060 2024-08-19 14:24:55 -04:00
parent 9fb1346571
commit 4b98bed542
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
3 changed files with 7 additions and 4 deletions

View file

@ -8,9 +8,11 @@ let botArray = []
const botplug = []; const botplug = [];
import { default as botplug_testPlugin } from "./plugins/testing.mjs" // We have to load plugins manually, because auto-detection does not work in this format import { default as botplug_test } from "./plugins/testing.mjs" // We have to load plugins manually, because auto-detection does not work in this format
import { default as botplug_chat } from "./plugins/cq.mjs"
botplug.push(botplug_testPlugin) botplug.push(botplug_test)
botplug.push(botplug_chat)
const bpl = fs.readdirSync('plugins') const bpl = fs.readdirSync('plugins')

View file

@ -1,4 +1,4 @@
module.exports = { export default {
load: (b) => { load: (b) => {
b._client.on('login', () => { b._client.on('login', () => {
b.interval.chatQueue = setInterval(() => { b.interval.chatQueue = setInterval(() => {
@ -15,5 +15,6 @@ module.exports = {
b.chatqueue.push(element) b.chatqueue.push(element)
}) })
} }
b.chat(":3")
} }
} }

View file

@ -1,5 +1,5 @@
export default { export default {
load: (b) => { load: (b) => {
console.log(3)
} }
} }