This commit is contained in:
Christopher Cookman 2023-03-10 11:20:51 -07:00
parent ec6ad5acf7
commit d7664d4f8c
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -135,7 +135,10 @@ client.on('messageCreate', async (message) => {
delete timers[message.channelId]; delete timers[message.channelId];
} }
// If the session is processing, don't do anything // If the session is processing, don't do anything
if (sessions[message.channelId].processing) return message.author.send(lang.busy); if (sessions[message.channelId].processing) {
message.delete();
return message.author.send(lang.busy);
}
// Set the timer // Set the timer
message.channel.sendTyping(); message.channel.sendTyping();
var typing = setInterval(() => { var typing = setInterval(() => {