diff --git a/lib/plugins/command.js b/lib/plugins/command.js index 20b485c..2262f17 100644 --- a/lib/plugins/command.js +++ b/lib/plugins/command.js @@ -79,7 +79,7 @@ function commandWeb([[mode, username, message]]) { } function _clientSystemMessage(...args) { - console.log("cmd msg:", args[0]?.message, args[0]?.extra?.length, args[0]?.extra, args[0], args.slice(1)) + console.log("cmd chat:", args[0]?.message, args[0]?.extra?.length, args[0]?.extra, args[0], args.slice(1)) } const events_registered = [] @@ -545,6 +545,8 @@ const load = (config) => { bot.on(key, fn) ) } + + // bot._client.on("chat", _clientSystemMessage) } const unload = () => { @@ -554,6 +556,8 @@ const unload = () => { events_registered.shift() } console.log("events_registered:", bot._eventsCount) + + // bot._client.off("chat", _clientSystemMessage) } module.exports = { load, unload, events_registered, command } \ No newline at end of file