This commit is contained in:
Christopher Cookman 2023-03-10 10:54:27 -07:00
parent 23d989cd59
commit 34ae082235
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -151,7 +151,7 @@ client.on('messageCreate', async (message) => {
if (output.content.endsWith("!!!TERM1234!!!")) { // This can allow a self-termination command if (output.content.endsWith("!!!TERM1234!!!")) { // This can allow a self-termination command
output.content = output.content.replace("!!!TERM1234!!!", ""); output.content = output.content.replace("!!!TERM1234!!!", "");
clearInterval(typing); clearInterval(typing);
message.channel.send(output.content); if (output.content.length != 0) message.channel.send(output.content);
resetSession(message.channelId); resetSession(message.channelId);
return message.channel.send(lang.terminated); return message.channel.send(lang.terminated);
} }