removing non needed code

This commit is contained in:
Raven Scott 2023-05-19 22:43:47 +02:00
parent 2924822a49
commit 8ce9e18656
1 changed files with 62 additions and 66 deletions

View File

@ -340,9 +340,7 @@ async function generateResponse(conversation, message) {
// if the message object doesn't exist, create it
if (!botMessage) {
(async () => {
botMessage = await message.channel.send({ embeds: [embedData] });
})();
botMessage = message.channel.send({ embeds: [embedData] });
} else {
botMessage.edit({ embeds: [embedData] }); // otherwise, update the message
}
@ -356,9 +354,7 @@ async function generateResponse(conversation, message) {
// if the message object doesn't exist, create it
if (!botMessage) {
(async () => {
botMessage = await message.channel.send({ embeds: [embedData] });
})();
botMessage = message.channel.send({ embeds: [embedData] });
} else {
botMessage.edit({ embeds: [embedData] }); // otherwise, update the message
}