Remove unneeded exports from console plugin
This commit is contained in:
parent
86b839ceba
commit
e8d9039178
2 changed files with 6 additions and 5 deletions
plugins
|
@ -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)
|
||||
|
|
|
@ -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}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue