feat(command): ✨ fix to show web (including extra [MODE]) messages
There's no way to remove `bot.addChatPattern`, so only does once on load
This commit is contained in:
@@ -57,6 +57,7 @@ const events = {
|
||||
}
|
||||
}
|
||||
, message: systemMessage
|
||||
, "chat:web": commandWeb
|
||||
}
|
||||
|
||||
function systemMessage(...args) {
|
||||
@@ -71,6 +72,11 @@ function systemMessage(...args) {
|
||||
)
|
||||
}
|
||||
|
||||
function commandWeb([[mode, username, message]]) {
|
||||
console.log("web msg:", mode, username, message)
|
||||
message && command(username, message)
|
||||
}
|
||||
|
||||
function _clientSystemMessage(...args) {
|
||||
console.log("cmd msg:", args[0]?.message, args[0]?.extra?.length, args[0]?.extra, args[0], args.slice(1))
|
||||
}
|
||||
|
Reference in New Issue
Block a user