mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
fix the prefix ploblem!1!1
This commit is contained in:
parent
46e0184e7f
commit
952335fdb4
2 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue