Only ignore messages if they are dm

This commit is contained in:
Dragon Fire
2021-03-07 16:41:22 -05:00
parent 227062e702
commit 1c1daa2cc5
+1 -1
View File
@@ -155,7 +155,7 @@ client.on('message', async msg => {
const hasEmbed = msg.embeds.length !== 0;
if (msg.author.bot || (!hasText && !hasImage && !hasEmbed)) return;
if (client.blacklist.user.includes(msg.author.id)) return;
if (msg.isCommand) return;
if (msg.isCommand && msg.channel.type !== 'dm') return;
// Cleverbot handler
const cleverbot = client.cleverbots.get(msg.channel.id);