|
@@ -25,12 +25,6 @@ client.bot.on("message", async m => {
|
|
if (m.author.id == client.botUser.id)
|
|
if (m.author.id == client.botUser.id)
|
|
return;
|
|
return;
|
|
|
|
|
|
- if (m.channel.type != "text") {
|
|
|
|
- logger.warn("User %s (%s#%s) tried to execute command in DMs. Message: %s.", m.author.id, m.author.username, m.author.discriminator, m.content);
|
|
|
|
- await m.reply("DM commands are disabled, sorry!");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (m.content.startsWith(COMMAND_PREFIX) && await plgMgr.runCommand("prefix", m, m.content.substring(COMMAND_PREFIX.length))) {
|
|
if (m.content.startsWith(COMMAND_PREFIX) && await plgMgr.runCommand("prefix", m, m.content.substring(COMMAND_PREFIX.length))) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|