This commit is contained in:
Isaac 2022-10-05 18:26:20 +01:00
parent fad1abf579
commit b4238e26a1
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -194,8 +194,13 @@ module.exports = class extends Listener {
} }
} }
await client.prisma.user.update({ if (!message.author.bot) {
data: { messageCount: { increment: 1 } }, await client.prisma.user.upsert({
create: {
id: message.author.id,
messageCount: 1,
},
update: { messageCount: { increment: 1 } },
where: { id: message.author.id }, where: { id: message.author.id },
}); });
@ -208,11 +213,12 @@ module.exports = class extends Listener {
data, data,
where: { id: ticket.id }, where: { id: ticket.id },
}); });
// TODO: staff status alert, working hours alerts
} }
// TODO: auto tag // TODO: if (!message.author.bot) staff status alert, working hours alerts
}
// TODO: if (!message.author.bot) auto tag
} }
} }