diff --git a/commands/punch.js b/commands/punch.js index 1ffced73..7ea4ab1e 100644 --- a/commands/punch.js +++ b/commands/punch.js @@ -1,3 +1,5 @@ +const pleading = '<:pleading:792119409551867925>'; + /** * Punch someone * @param {Client} client Discord server client @@ -7,6 +9,10 @@ module.exports = async (client, msg, args) => { if (msg.mentions.users.size > 0) { const snowflake = msg.mentions.users.firstKey(); + if (snowflake == client.user.id) { + msg.reply(`Why are you trying to punch me? ${pleading} ${pleading}`); + return; + } msg.channel.send(`<@${msg.author.id}> 🤜💥 punched <@${snowflake}> hard! React with 👊 in 5 seconds to retaliate!`) .then(message => { message.react('👊'); diff --git a/package.json b/package.json index 38fe4832..f5802906 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amy", - "version": "3.2.45", + "version": "3.2.46", "description": "Your personal assisstant, reimagined", "author": "Gideon Tong ", "main": "index.js",