[General] Fix online user count in [p]serverinfo (#1843)

This commit is contained in:
Twentysix 2018-06-19 23:27:37 +02:00 committed by GitHub
parent 74543e59bf
commit 4f197fd5f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,8 +240,7 @@ class General:
"""Shows server's informations"""
server = ctx.message.server
online = len([m.status for m in server.members
if m.status == discord.Status.online or
m.status == discord.Status.idle])
if m.status != discord.Status.offline])
total_users = len(server.members)
text_channels = len([x for x in server.channels
if x.type == discord.ChannelType.text])