mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Don't count idle users in the connected and playing counts
This commit is contained in:
parent
db7fabd954
commit
1c7f444592
1 changed files with 9 additions and 9 deletions
|
@ -59,16 +59,16 @@ class CvstatsCommand(rc.Command):
|
||||||
if self._is_ryg_member(m):
|
if self._is_ryg_member(m):
|
||||||
members_online += 1
|
members_online += 1
|
||||||
|
|
||||||
if m["voice"] is not None and not m["voice"]["afk"]:
|
if m["voice"] is not None and not m["voice"]["afk"]:
|
||||||
users_connected += 1
|
users_connected += 1
|
||||||
if self._is_ryg_member(m):
|
|
||||||
members_connected += 1
|
|
||||||
|
|
||||||
for mact in m["activities"]:
|
|
||||||
if mact.get("type") == 0:
|
|
||||||
users_playing += 1
|
|
||||||
if self._is_ryg_member(m):
|
if self._is_ryg_member(m):
|
||||||
members_playing += 1
|
members_connected += 1
|
||||||
|
|
||||||
|
for mact in m["activities"]:
|
||||||
|
if mact.get("type") == 0:
|
||||||
|
users_playing += 1
|
||||||
|
if self._is_ryg_member(m):
|
||||||
|
members_playing += 1
|
||||||
|
|
||||||
log.debug(f"Total users: {users_total}")
|
log.debug(f"Total users: {users_total}")
|
||||||
log.debug(f"Total members: {members_total}")
|
log.debug(f"Total members: {members_total}")
|
||||||
|
|
Loading…
Reference in a new issue