]> git.puffer.fish Git - matthieu/gru.git/commitdiff
change probability
authorMatthieuCoder <matthieu@matthieu-dev.xyz>
Sun, 22 Jan 2023 10:14:14 +0000 (14:14 +0400)
committerMatthieuCoder <matthieu@matthieu-dev.xyz>
Sun, 22 Jan 2023 10:14:14 +0000 (14:14 +0400)
autofeur_nova/src/index.mts

index 6820d54f5fa90288a4218e32a9281db3178c1dee..6e69b60a434b816482a35cd4b4cb56d0e4cc08c0 100644 (file)
@@ -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));