Skip to content

Commit

Permalink
Add #food autoreact
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Nov 9, 2024
1 parent a646b04 commit 821a47c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/autoreact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export default class Autoreact extends BotComponent {
const reaction = message.guild!.emojis.cache.find(emoji => emoji.name === "what");
if (reaction !== undefined) {
await message.react(reaction);
} else {
M.warn("Unable to find emoji what");
}
}
if (message.content.trim().match(/^ok\.?$/gi)) {
Expand All @@ -64,6 +66,8 @@ export default class Autoreact extends BotComponent {
const reaction = message.guild!.emojis.cache.find(emoji => emoji.name === "nog4g");
if (reaction !== undefined) {
await message.react(reaction);
} else {
M.warn("Unable to find emoji nog4g");
}
}
if (message.channel.id == this.wheatley.channels.introductions.id) {
Expand All @@ -84,6 +88,13 @@ export default class Autoreact extends BotComponent {
await message.react("👍");
await message.react("👎");
await message.react("🤷");
} else if (message.channel.id == this.wheatley.channels.food.id) {
const reaction = message.guild!.emojis.cache.find(emoji => emoji.name === "chefskiss");
if (reaction !== undefined) {
await message.react(reaction);
} else {
M.warn("Unable to find emoji chefskiss");
}
}
} catch (e: any) {
// reaction blocked
Expand Down

0 comments on commit 821a47c

Please sign in to comment.