Port the chat queue
This commit is contained in:
parent
9fb1346571
commit
4b98bed542
3 changed files with 7 additions and 4 deletions
6
index.js
6
index.js
|
@ -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')
|
||||||
|
|
||||||
|
|
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
export default {
|
export default {
|
||||||
load: (b) => {
|
load: (b) => {
|
||||||
console.log(3)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue