We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1604ad6 commit 40964b3Copy full SHA for 40964b3
src/modules/quoiFeur/quoiFeur.helpers.ts
@@ -44,12 +44,12 @@ const reactWithCoubeh = async (message: Message) => {
44
};
45
46
export const reactOnEndWithQuoi = async (message: Message) => {
47
+ if (!endWithQuoi(message.content)) return;
48
+
49
const channelIds = await cache.get('quoiFeurChannels', []);
50
const channelHasGame = channelIds.find((channelId) => channelId === message.channelId);
51
if (!channelHasGame) return;
52
- if (!endWithQuoi(message.content)) return;
-
53
const probability = 1 / 20;
54
55
Math.random() <= probability ? await reactWithCoubeh(message) : await reactWithFeur(message);
0 commit comments