Dont send anything if time==0
This commit is contained in:
parent
7102bf32f0
commit
6bf6c1ef28
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user