Remove unneeded exports from console plugin

This commit is contained in:
7cc5c4f330d47060 2024-08-03 03:10:18 -04:00
parent 86b839ceba
commit e8d9039178
No known key found for this signature in database
2 changed files with 6 additions and 5 deletions

View file

@ -98,9 +98,9 @@ module.exports = {
if (msgPlain.endsWith('\n\n\n\n\nThe chat has been cleared')) return
if (msgPlain.startsWith('Command set: ')) return
b.emit('plainchat', msgPlain)
console2.write(`[${b.id}] [${data.type}] ${msgConsole}\x1b[0m`)
const fullCommand = data.message
b.displayChat(data.type,`${msgConsole}\x1b[0m`)
const fullCommand = data.message
for (const i in b.prefix) {
if (fullCommand.startsWith(b.prefix[i])) {
const command = fullCommand.slice(b.prefix[i].length)

View file

@ -44,7 +44,8 @@ module.exports = {
b.info = (msg) => {
consoleWrite(`[${b.id}] [info] ${msg}`)
}
},
rl,
write: consoleWrite
b.displayChat = (type, msg) => {
consoleWrite(`[${b.id}] [${type}] ${msg}`)
}
}
}