Dont send anything if time==0

This commit is contained in:
Raven Scott 2023-05-23 15:53:53 +02:00
parent 7102bf32f0
commit 6bf6c1ef28

View File

@ -347,7 +347,7 @@ async function generateResponse(conversation, message) {
// if the message object doesn't exist, create it // if the message object doesn't exist, create it
if (!botMessage) { if (!botMessage) {
(async () => { (async () => {
//if (time == 0) return if (time == 0) return
botMessage = await message.channel.send({ embeds: [embedData] }); botMessage = await message.channel.send({ embeds: [embedData] });
})(); })();
} else { } else {
@ -409,7 +409,7 @@ async function generateResponse(conversation, message) {
// if the message object doesn't exist, create it // if the message object doesn't exist, create it
if (!botMessage) { if (!botMessage) {
(async () => { (async () => {
//if (time == 0) return if (time == 0) return
botMessage = await message.channel.send({ embeds: [embedData] }); botMessage = await message.channel.send({ embeds: [embedData] });
})(); })();
} else { } else {