Skip to content

Commit

Permalink
Merge pull request #62 from SmakTalk/general
Browse files Browse the repository at this point in the history
General
  • Loading branch information
SahilMak authored Feb 17, 2024
2 parents 71ee7b7 + 49841d5 commit ca4a455
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion commands/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' || 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}`);
}
break;
}
};
Expand Down

0 comments on commit ca4a455

Please sign in to comment.