mirror of
https://github.com/jcreek/MupBot.git
synced 2026-07-12 18:33:44 +00:00
feat(*): Add a response when someone tags the bot
This commit is contained in:
@@ -13,6 +13,11 @@ client.once('ready', () =>{
|
|||||||
})
|
})
|
||||||
|
|
||||||
client.on('message', function (message) {
|
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
|
// 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.author.bot) return;
|
||||||
if (!message.content.startsWith(config.prefix)) return;
|
if (!message.content.startsWith(config.prefix)) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user