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