mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-03 00:41:27 +03:00
fixes
This commit is contained in:
@@ -194,8 +194,13 @@ module.exports = class extends Listener {
|
||||
}
|
||||
}
|
||||
|
||||
await client.prisma.user.update({
|
||||
data: { messageCount: { increment: 1 } },
|
||||
if (!message.author.bot) {
|
||||
await client.prisma.user.upsert({
|
||||
create: {
|
||||
id: message.author.id,
|
||||
messageCount: 1,
|
||||
},
|
||||
update: { messageCount: { increment: 1 } },
|
||||
where: { id: message.author.id },
|
||||
});
|
||||
|
||||
@@ -208,11 +213,12 @@ module.exports = class extends Listener {
|
||||
data,
|
||||
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
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user