diff options
| author | Matthieu Pignolet <matthieu@matthieu-dev.xyz> | 2024-06-21 18:41:28 +0400 |
|---|---|---|
| committer | Matthieu Pignolet <matthieu@matthieu-dev.xyz> | 2024-06-21 18:41:28 +0400 |
| commit | 756ef3f2b3d677a265584117121d01754f3c1e62 (patch) | |
| tree | fe58841805b4079b7de0ca933284fb1b05901b0a | |
| parent | 161cc01bcb3863d386cc759529a08aa432c75bd7 (diff) | |
chance frequency
| -rw-r--r-- | discordjs/src/index.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
