commandDispatcher: attempt to mitigate reruns from embed loading

This commit is contained in:
Cynthia Foxwell 2022-04-18 23:02:20 -06:00
parent 05c9d98575
commit 4c7b35b13c
1 changed files with 1 additions and 1 deletions

View File

@ -83,6 +83,7 @@ async function CommandDispatcher(msg) {
const args = parseArguments(line);
try {
msg.hasRan = true;
const response = await runCommand(msg, cmd, line, args);
if (response != null) {
let file;
@ -136,7 +137,6 @@ async function CommandDispatcher(msg) {
});
}
}
msg.hasRan = true;
}
} catch (err) {
msg.channel.createMessage({