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 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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user