feat(command): use a simpler text based system for receiving server commands

This commit is contained in:
jay 2021-05-06 13:11:31 +05:00
parent cbb105fe49
commit 269d258763

View File

@ -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)
}