Fix bot crashing when being timed out
This commit is contained in:
parent
29b80ff98b
commit
fbbc821d74
3
index.js
3
index.js
@ -72,8 +72,7 @@ async function processGuildTextMessage(message) {
|
|||||||
|| (message.reference && message.channel.messages.cache.get(message.reference.messageId).author.id == client.user.id)))
|
|| (message.reference && message.channel.messages.cache.get(message.reference.messageId).author.id == client.user.id)))
|
||||||
sendToAI(message);
|
sendToAI(message);
|
||||||
else if (message.guild.id == shapeGuild && message.author.bot && savedMessage) {
|
else if (message.guild.id == shapeGuild && message.author.bot && savedMessage) {
|
||||||
savedMessage.channel.sendTyping();
|
Promise.all([savedMessage.channel.sendTyping(), savedMessage.channel.send("<@" + savedMessage.author.id + "> " + message.content)]).catch(error => {});
|
||||||
savedMessage.channel.send("<@" + savedMessage.author.id + "> " + message.content);
|
|
||||||
}
|
}
|
||||||
if (!isAllowedUser(message.author.id)) count++;
|
if (!isAllowedUser(message.author.id)) count++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user