Skip to content

Commit 7544ec7

Browse files
committed
(feat): dont respond to everyone and here
1 parent 6992406 commit 7544ec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ client.on('messageCreate', async message => {
2727
// Ignore messages from the bot itself
2828
if (message.author.bot) return;
2929

30-
// Check if the bot is tagged in the message
31-
if (message.mentions.has(client.user)) {
30+
// Check if the message mentions the bot directly and not @everyone or @here
31+
if (message.mentions.has(client.user) && !message.mentions.everyone && !message.mentions.has('here')) {
3232
const fetch = (await import('node-fetch')).default;
3333

3434
// Function to split message into chunks of 2000 characters or less

0 commit comments

Comments
 (0)