mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +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;
|
const hasEmbed = msg.embeds.length !== 0;
|
||||||
if (msg.author.bot || (!hasText && !hasImage && !hasEmbed)) return;
|
if (msg.author.bot || (!hasText && !hasImage && !hasEmbed)) return;
|
||||||
if (client.blacklist.user.includes(msg.author.id)) return;
|
if (client.blacklist.user.includes(msg.author.id)) return;
|
||||||
if (msg.isCommand) return;
|
if (msg.isCommand && msg.channel.type !== 'dm') return;
|
||||||
|
|
||||||
// Cleverbot handler
|
// Cleverbot handler
|
||||||
const cleverbot = client.cleverbots.get(msg.channel.id);
|
const cleverbot = client.cleverbots.get(msg.channel.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user