ed53c4ac38
Linting!
22 lines
487 B
JavaScript
Executable file
22 lines
487 B
JavaScript
Executable file
module.exports = {
|
|
load: () => {
|
|
|
|
},
|
|
loadBot: (b) => {
|
|
b._client.on('login', () => {
|
|
b.interval.chatQueue = setInterval(() => {
|
|
if (b.chatqueue.length !== 0) {
|
|
b._client.chat(b.chatqueue[0])
|
|
b.chatqueue.splice(0, 1)
|
|
}
|
|
}, 150)
|
|
})
|
|
b.chatqueue = []
|
|
b.chat = function chat (msg) {
|
|
if (msg.length === 0) return
|
|
msg.match(/.{1,250}/g).forEach(element => {
|
|
b.chatqueue.push(element)
|
|
})
|
|
}
|
|
}
|
|
}
|