From cc667d8197eccb940e2c1df9a0fd9aedd0e5020a Mon Sep 17 00:00:00 2001 From: Sahil Makhijani Date: Fri, 16 Feb 2024 19:51:42 -0700 Subject: [PATCH 1/2] Amended hug command --- commands/general.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/general.js b/commands/general.js index bbc3e86..8332992 100644 --- a/commands/general.js +++ b/commands/general.js @@ -17,7 +17,11 @@ const general = async (client, channel, command, context) => { (args.length > 1) ? await client.say(channel, `Hi ${args[1]} HeyGuys`) : await client.say(channel, `Hi @${context.displayName} HeyGuys`); break; case '$hug': - (args.length > 1) ? await client.action(channel, `${context.displayName} gives a big, friendly hug to ${args[1]} (but only if ${args[1]} accepts)`) : await client.say(channel, `gives a big, friendly hug to @${context.displayName}`); + if (args[1] && args[1].toLowerCase() === '@islandvibingpresents' || args[1].toLowerCase() === 'islandvibingpresents') { + await client.say(channel, 'This is totally broken. 🧁'); + } else { + (args.length > 1) ? await client.action(channel, `${context.displayName} gives a big, friendly hug to ${args[1]} (but only if ${args[1]} accepts)`) : await client.action(channel, `gives a big, friendly hug to @${context.displayName}`); + } break; } }; From 49841d5b2d9e09d0e9f56b3d7ebc7c50d2f1642a Mon Sep 17 00:00:00 2001 From: Sahil Makhijani Date: Fri, 16 Feb 2024 19:53:36 -0700 Subject: [PATCH 2/2] Amended hug command again --- commands/general.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/general.js b/commands/general.js index 8332992..8e6754d 100644 --- a/commands/general.js +++ b/commands/general.js @@ -17,7 +17,7 @@ const general = async (client, channel, command, context) => { (args.length > 1) ? await client.say(channel, `Hi ${args[1]} HeyGuys`) : await client.say(channel, `Hi @${context.displayName} HeyGuys`); break; case '$hug': - if (args[1] && args[1].toLowerCase() === '@islandvibingpresents' || args[1].toLowerCase() === 'islandvibingpresents') { + if (args[1] && args[1].toLowerCase() === '@islandvibingpresents' || args[1].toLowerCase() === 'islandvibingpresents' || args[1].toLowerCase() === 'vibing') { await client.say(channel, 'This is totally broken. 🧁'); } else { (args.length > 1) ? await client.action(channel, `${context.displayName} gives a big, friendly hug to ${args[1]} (but only if ${args[1]} accepts)`) : await client.action(channel, `gives a big, friendly hug to @${context.displayName}`);