Skip to content

Commit 5c0ee42

Browse files
committed
make bingus react with more emojis
1 parent 882e9f9 commit 5c0ee42

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

bingus-bot/src/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import {
1717
BINGUS_EMOJI,
1818
EmbedList,
1919
GUNNYA_EMOJI,
20+
LANGUAGE_EMOJI,
2021
NYAGUN_EMOJI,
22+
QUESTION_EMOJI,
2123
REACTION_EMOJIS,
2224
SAD_EMOJIS,
2325
fetchBingus,
@@ -130,6 +132,11 @@ client.on("threadCreate", async (thread, newly) => {
130132
return;
131133
}
132134

135+
// React if not confident with the first answer
136+
if (data[0].relevance <= 40) {
137+
lastMessage?.react(QUESTION_EMOJI);
138+
}
139+
133140
const embedList = new EmbedList();
134141
embedList.push(
135142
...data.slice(0, 5).map(
@@ -229,6 +236,9 @@ client.on("messageCreate", async (msg) => {
229236
);
230237
}
231238
}
239+
// React if mentioning translator role
240+
} else if (msg.mentions.roles.has("1055961071313223810")) {
241+
await msg.react(LANGUAGE_EMOJI);
232242
}
233243
});
234244

bingus-bot/src/util.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,14 @@ export const NYAGUN_EMOJI: EmojiIdentifierResolvable =
189189
"<:nya_gun:957426272030576671>";
190190
export const GUNNYA_EMOJI: EmojiIdentifierResolvable =
191191
"<:gun_nya:962115210670383184>";
192+
export const LANGUAGE_EMOJI: EmojiIdentifierResolvable =
193+
"<:langwidjnom:1055961639842750534>";
194+
export const QUESTION_EMOJI: EmojiIdentifierResolvable =
195+
"<:nighty_question:1314209482133209088>";
196+
export const WINK_EMOJI: EmojiIdentifierResolvable =
197+
"<:slime_wink:1341418353801166953>";
192198

193199
export const REACTION_EMOJIS: EmojiIdentifierResolvable[] = [
194-
"<:langwidjnom:1055961639842750534>",
195200
"<:Heart:1117832451620868136>",
196201
"<:nya_a:847203539352551544>",
197202
"<:nya_umu:850498715617198080>",
@@ -207,13 +212,24 @@ export const REACTION_EMOJIS: EmojiIdentifierResolvable[] = [
207212
"🧡",
208213
"💙",
209214
"✨",
210-
"😻",
215+
"<:nighty_hug:1314209493747241011>",
216+
"<:nighty_a:1314209496029204572>",
217+
"<:nighty_heart:1314209486390427659>",
218+
"<:nighty_nom:1314209503276699708>",
219+
"<:nighty_yay:1319261631217143910>",
220+
"<:slime_wow:1341418344544211045>",
221+
WINK_EMOJI,
211222
BINGUS_EMOJI,
212223
];
213224

214225
export const SAD_EMOJIS: EmojiIdentifierResolvable[] = [
226+
QUESTION_EMOJI,
215227
"<:spicypillownom:839133143793139733>",
216228
"<:nya_gun:957426272030576671>",
229+
"<:nighty_cry:1314209498554175578>",
230+
"<:nighty_flop:1314209488429121556>",
231+
"<:nighty_gun:1314209484440338474>",
232+
"<:slime_angy:1341418349472518175>",
217233
"😭",
218234
"😢",
219235
"😓",

0 commit comments

Comments
 (0)