mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Only ignore messages if they are dm
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user