ignore even less

This commit is contained in:
Skye 2023-03-10 21:08:36 +09:00
parent f28fb8ea0e
commit 9b2b141af6
Signed by: me
GPG key ID: 0104BC05F41B77B8

View file

@ -61,6 +61,7 @@ client.on("messageCreate", async (message) => {
const context = [ const context = [
...msgs ...msgs
.filter((msg) => { .filter((msg) => {
if (msg.webhookId && !msg.content.startsWith("\\")) return true;
if (msg.author.bot && msg.author !== msg.author.client.user) if (msg.author.bot && msg.author !== msg.author.client.user)
return false; return false;
if (msg.content.startsWith("\\")) return false; if (msg.content.startsWith("\\")) return false;