feat(command): 🚧 add stub for bot._client
events
Not sure how these are different: - `bot._client.on("chat")` - `bot.on("message(str)")`
This commit is contained in:
parent
269d258763
commit
df193da779
|
@ -79,7 +79,7 @@ function commandWeb([[mode, username, message]]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _clientSystemMessage(...args) {
|
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 = []
|
const events_registered = []
|
||||||
|
@ -545,6 +545,8 @@ const load = (config) => {
|
||||||
bot.on(key, fn)
|
bot.on(key, fn)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// bot._client.on("chat", _clientSystemMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
const unload = () => {
|
const unload = () => {
|
||||||
|
@ -554,6 +556,8 @@ const unload = () => {
|
||||||
events_registered.shift()
|
events_registered.shift()
|
||||||
}
|
}
|
||||||
console.log("events_registered:", bot._eventsCount)
|
console.log("events_registered:", bot._eventsCount)
|
||||||
|
|
||||||
|
// bot._client.off("chat", _clientSystemMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { load, unload, events_registered, command }
|
module.exports = { load, unload, events_registered, command }
|
Loading…
Reference in New Issue
Block a user