From 82b7504e04ce127e127e3aa747e3262bd80f67e0 Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Thu, 14 Jan 2021 19:32:05 +0000 Subject: [PATCH] feat(*): Add a response when someone tags the bot --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index ad448b8..e055276 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,11 @@ client.once('ready', () =>{ }) client.on('message', function (message) { + // If someone tags the bot + if (message.mentions.has(client.user.id)) { + message.channel.send(`That's my name, don't wear it out!`); + }; + // Ignore messages from the bot and that don't begin with the prefix, and do not run in DMs to bot if (message.author.bot) return; if (!message.content.startsWith(config.prefix)) return;