From 756ef3f2b3d677a265584117121d01754f3c1e62 Mon Sep 17 00:00:00 2001 From: Matthieu Pignolet Date: Fri, 21 Jun 2024 18:41:28 +0400 Subject: [PATCH] chance frequency --- discordjs/src/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5