Skip to content

Commit

Permalink
Add punching easter egg
Browse files Browse the repository at this point in the history
  • Loading branch information
gideontong committed Dec 25, 2020
1 parent 0fcb7da commit 72fc383
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions commands/punch.js
@@ -1,3 +1,5 @@
const pleading = '<:pleading:792119409551867925>';

/**
* Punch someone
* @param {Client} client Discord server client
Expand All @@ -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('πŸ‘Š');
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "amy",
"version": "3.2.45",
"version": "3.2.46",
"description": "Your personal assisstant, reimagined",
"author": "Gideon Tong <gideon@gideontong.com>",
"main": "index.js",
Expand Down

0 comments on commit 72fc383

Please sign in to comment.