feat(command): ✨ use a simpler text based system for receiving server commands
This commit is contained in:
parent
cbb105fe49
commit
269d258763
|
@ -56,7 +56,8 @@ const events = {
|
|||
}, 15 * 60 * 1000, bot, cfg);
|
||||
}
|
||||
}
|
||||
, message: systemMessage
|
||||
// , message: systemMessage
|
||||
, messagestr: function systemMessageStr(...args) { console.log("cmd msgstr:", ...args) }
|
||||
, "chat:web": commandWeb
|
||||
}
|
||||
|
||||
|
@ -73,7 +74,7 @@ function systemMessage(...args) {
|
|||
}
|
||||
|
||||
function commandWeb([[mode, username, message]]) {
|
||||
console.log("web msg:", mode, username, message)
|
||||
// console.log("web msg:", mode, username, message)
|
||||
message && command(username, message)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user