This commit is contained in:
ChomeNS 2022-11-18 10:29:39 +07:00
parent 532aea0550
commit 816aa16ec5

View file

@ -66,7 +66,7 @@ function inject(bot, dcclient, config) {
const username = _username.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, ''); const username = _username.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
const message = _message.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, ''); const message = _message.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
const sender = bot.playersAddedPlayers[username]; const sender = bot.playersAddedPlayers[username];
bot.command_handler.run(username, username, message, sender); bot.command_handler.run(username, username, message, sender, channeldc, bot.hash, bot.ownerHash, username);
}); });
function handleDiscordMessages(message) { function handleDiscordMessages(message) {
try { try {