From: Matthieu Pignolet Date: Fri, 21 Jun 2024 14:41:28 +0000 (+0400) Subject: chance frequency X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=756ef3f2b3d677a265584117121d01754f3c1e62;p=matthieu%2Fgru.git chance frequency --- diff --git a/discordjs/src/index.mjs b/discordjs/src/index.mjs index a85ba4f..faa94f3 100644 --- a/discordjs/src/index.mjs +++ b/discordjs/src/index.mjs @@ -54,7 +54,7 @@ const messageAction = async (message) => { let response = await completeWord(cleanText); // Ignore if there is no completion - const shouldReply = (Math.random() > 0.98 || specialChannels.includes(message.channelId) || message.guild == null); + const shouldReply = (Math.random() > 0.995 || specialChannels.includes(message.channelId) || message.guild == null); if ((response || response === "") && shouldReply) { message.reply(response); }