From 6bf6c1ef280335bdc1a28f762a5d1314e906c43c Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Tue, 23 May 2023 15:53:53 +0200 Subject: [PATCH] Dont send anything if time==0 --- llamabot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llamabot.js b/llamabot.js index 2015da6..4012782 100644 --- a/llamabot.js +++ b/llamabot.js @@ -347,7 +347,7 @@ async function generateResponse(conversation, message) { // if the message object doesn't exist, create it if (!botMessage) { (async () => { - //if (time == 0) return + if (time == 0) return botMessage = await message.channel.send({ embeds: [embedData] }); })(); } else { @@ -409,7 +409,7 @@ async function generateResponse(conversation, message) { // if the message object doesn't exist, create it if (!botMessage) { (async () => { - //if (time == 0) return + if (time == 0) return botMessage = await message.channel.send({ embeds: [embedData] }); })(); } else {