mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
ignore afk in report
This commit is contained in:
parent
2b8a4af701
commit
410d6d9e62
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue