From 952335fdb450e5c1aebd1f0703ff6b8f00351184 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Wed, 15 Mar 2023 15:06:49 +0700 Subject: [PATCH] fix the prefix ploblem!1!1 --- plugins/console.js | 2 +- plugins/proxy/custom_chat.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/console.js b/plugins/console.js index f21f5aa..d1d4b8d 100644 --- a/plugins/console.js +++ b/plugins/console.js @@ -57,7 +57,7 @@ function inject (bot, _dcclient, config, rl) { if (line.startsWith('.')) { return bot.command_handler.run( bot.username, - '*' + line.substring(1), + config.prefixes[0] + line.substring(1), bot.uuid, null, 'h', diff --git a/plugins/proxy/custom_chat.js b/plugins/proxy/custom_chat.js index 2fa8945..3f74ee2 100644 --- a/plugins/proxy/custom_chat.js +++ b/plugins/proxy/custom_chat.js @@ -9,7 +9,7 @@ function inject (bot, client, target, config, clientPacketBlacklist) { if (data.message?.startsWith('.')) { return bot.command_handler.run( client.username, - '*' + data.message.substring(1), + config.prefixes[0] + data.message.substring(1), client.uuid, null, 'h', // real hash hardcode