From: MatthieuCoder Date: Sun, 22 Jan 2023 10:14:14 +0000 (+0400) Subject: change probability X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=1fc983ac977751630d23d0d63335f3151f3220f2;p=matthieu%2Fgru.git change probability --- diff --git a/autofeur_nova/src/index.mts b/autofeur_nova/src/index.mts index 6820d54..6e69b60 100644 --- a/autofeur_nova/src/index.mts +++ b/autofeur_nova/src/index.mts @@ -65,7 +65,7 @@ emitter.on( async (message: GatewayMessageCreateDispatch["d"]) => { // we shall not repond to bots if (message.author.bot) return; - if (Math.random() >= 0) { + if (Math.random() > 0.7) { try { // Get the completed word found by the db. let response = await completeWord(cutWord(message.content));