fix: disable presence check on public bots

This commit is contained in:
Isaac 2023-06-30 00:01:09 +01:00
parent c7d9bbff53
commit ca09070c66
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -745,7 +745,7 @@ module.exports = class TicketManager {
}
if (working) {
if (working && process.env.PUBLIC_BOT !== 'true') {
let online = 0;
for (const [, member] of channel.members) {
if (!await isStaff(channel.guild, member.id)) continue;