Now, the bot react only if the content of the message is a mention to it, without any other content. #1

Merged
KaKi87 merged 3 commits from Ionys320/voice-activity-notify-bot:master into master 2020-07-30 19:09:46 +02:00
Showing only changes of commit 1bbe28794f - Show all commits

View file

@ -42,9 +42,9 @@
const memberId = messageAuthorMember.id; const memberId = messageAuthorMember.id;
const messageMentionsMembers = message.mentions.members; const messageContent = message.content;
if(messageMentionsMembers && messageMentionsMembers.has(client.user.id)){ if(messageContent && messageContent == ("<@!" + client.user.id + ">")){
const { guild } = message; const { guild } = message;