mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -05:00
another command handler fix
This commit is contained in:
parent
33cca1e276
commit
2ac9ff378e
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ function inject (bot, dcclient, config) {
|
|||
const username = _username.replace(/§.?/g, '')
|
||||
const message = _message.replace(/§.?/g, '')
|
||||
const sender = bot.playersAddedPlayers[username]
|
||||
bot.command_handler.run(username, username, message, sender, channeldc, bot.hash, bot.ownerHash, username)
|
||||
bot.command_handler.run(username, message, sender, channeldc, bot.hash, bot.ownerHash, username)
|
||||
})
|
||||
function handleDiscordMessages (message) {
|
||||
try {
|
||||
|
@ -98,7 +98,7 @@ function inject (bot, dcclient, config) {
|
|||
// only receive messages in SPECIFIC channel
|
||||
if (message.channel.id !== channeldc.id) return
|
||||
if (!message.content.startsWith(config.discord.prefix)) return
|
||||
bot.command_handler.main(config.discord.prefix, message.member.displayName, message.member.displayName, message, 'no sender for discord', channeldc)
|
||||
bot.command_handler.main(config.discord.prefix, message.member.displayName, message, 'no sender for discord', channeldc)
|
||||
} catch (e) {
|
||||
return
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue