diff options
| author | Matthieu Pignolet <matthieu@matthieu-dev.xyz> | 2024-06-06 14:21:03 +0400 |
|---|---|---|
| committer | Matthieu Pignolet <matthieu@matthieu-dev.xyz> | 2024-06-06 14:21:03 +0400 |
| commit | ddac41968707f6f5bc4c6529247d871b046b5e5c (patch) | |
| tree | 9fdf1e13322f681d102c93830446b0c4a0c530e2 /discordjs/src | |
| parent | 7698cd57a9db15aaf5d2f13affb001b4832033a4 (diff) | |
make the bot reply less often
Diffstat (limited to 'discordjs/src')
| -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 c28c65d..00cec61 100644 --- a/discordjs/src/index.mjs +++ b/discordjs/src/index.mjs @@ -46,7 +46,7 @@ client.on("messageCreate", async (message) => { let response = await completeWord(cutWord(message.cleanContent)); // Ignore if there is no completion - if ((response || response === "") && Math.random() > 0.6) { + if ((response || response === "") && Math.random() > 0.8) { message.reply(response); } } catch (e) { |
