From 269d258763d45ad2d15ecc3e019fa07394ac5c43 Mon Sep 17 00:00:00 2001 From: jay Date: Thu, 6 May 2021 13:11:31 +0500 Subject: [PATCH] feat(command): :sparkles: use a simpler text based system for receiving server commands --- lib/plugins/command.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/plugins/command.js b/lib/plugins/command.js index 30c4d54..20b485c 100644 --- a/lib/plugins/command.js +++ b/lib/plugins/command.js @@ -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) }