We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6992406 commit 7544ec7Copy full SHA for 7544ec7
discord/index.js
@@ -27,8 +27,8 @@ client.on('messageCreate', async message => {
27
// Ignore messages from the bot itself
28
if (message.author.bot) return;
29
30
- // Check if the bot is tagged in the message
31
- if (message.mentions.has(client.user)) {
+ // Check if the message mentions the bot directly and not @everyone or @here
+ if (message.mentions.has(client.user) && !message.mentions.everyone && !message.mentions.has('here')) {
32
const fetch = (await import('node-fetch')).default;
33
34
// Function to split message into chunks of 2000 characters or less
0 commit comments