Skip to content

Commit

Permalink
react to both types
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX committed Aug 16, 2024
1 parent db27cce commit f3a6b96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bingus-bot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,16 @@ client.on("messageCreate", async (msg) => {
msg.mentions.users.has(clientId) ||
/\b(bot|bing\w{0,4})\b/.test(lowercase)
) {
// React back with gun nya
// React back with gun nya when nya gun
if (msg.content.includes(NYAGUN_EMOJI.toString())) {
await msg.react(GUNNYA_EMOJI);
return;
}
// React back with nya gun when gun nya
else if (msg.content.includes(GUNNYA_EMOJI.toString())) {
await msg.react(NYAGUN_EMOJI);
return;
}

// Check if Bingus recently sent a message
const lastMessages = await msg.channel.messages.fetch({
Expand Down

0 comments on commit f3a6b96

Please sign in to comment.