fix the prefix ploblem!1!1

This commit is contained in:
ChomeNS 2023-03-15 15:06:49 +07:00
parent 46e0184e7f
commit 952335fdb4
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ function inject (bot, _dcclient, config, rl) {
if (line.startsWith('.')) { if (line.startsWith('.')) {
return bot.command_handler.run( return bot.command_handler.run(
bot.username, bot.username,
'*' + line.substring(1), config.prefixes[0] + line.substring(1),
bot.uuid, bot.uuid,
null, null,
'h', 'h',

View file

@ -9,7 +9,7 @@ function inject (bot, client, target, config, clientPacketBlacklist) {
if (data.message?.startsWith('.')) { if (data.message?.startsWith('.')) {
return bot.command_handler.run( return bot.command_handler.run(
client.username, client.username,
'*' + data.message.substring(1), config.prefixes[0] + data.message.substring(1),
client.uuid, client.uuid,
null, null,
'h', // real hash hardcode 'h', // real hash hardcode