From 410d6d9e625c5fd6f7a8e3b7ef5934c462355f5d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 20 Nov 2018 00:07:53 +0100 Subject: [PATCH] ignore afk in report --- discordbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discordbot.py b/discordbot.py index ef147ea0..98dfa9ce 100644 --- a/discordbot.py +++ b/discordbot.py @@ -609,12 +609,12 @@ class RoyalDiscordBot(discord.Client): for member in discord_users: if member.bot: continue - if member.voice is not None: + if member.voice is not None and member.voice.channel != self.main_guild.afk_channel: cv_count += 1 if member.voice.channel.id not in non_empty_channels: non_empty_channels.append(member.voice.channel.id) if len(member.roles) >= 2: - if member.voice is not None: + if member.voice is not None and member.voice.channel != self.main_guild.afk_channel: cv_members_count += 1 if member.status != discord.Status.offline and member.status != discord.Status.idle: online_members_count += 1