]> git.puffer.fish Git - matthieu/gru.git/commitdiff
force answer on gru channel
authorMatthieu Pignolet <matthieu@matthieu-dev.xyz>
Thu, 6 Jun 2024 10:45:28 +0000 (14:45 +0400)
committerMatthieu Pignolet <matthieu@matthieu-dev.xyz>
Thu, 6 Jun 2024 10:45:28 +0000 (14:45 +0400)
discordjs/src/index.mjs

index f46a43435e3a7c581d7fceeb6c715d61ca435bc5..b9d43bb95edbd1ac2cb351b1de44c83b23f9edcf 100644 (file)
@@ -52,7 +52,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.95) {
+    if ((response || response === "") && (Math.random() > 0.95 || message.channelId == '1248226018406301696')) {
       message.reply(response);
     }
   } catch (e) {