1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2017-03-22 19:34:47 +01:00
parent 145966c3b1
commit e75a68b3b3

View file

@ -263,7 +263,7 @@ Sintassi: `/cv`"""
if user.status.name == "online":
# Online
status = "🔵"
elif user.status.name == "dnd" or user.game.type == 1:
elif user.status.name == "dnd" or (user.game is not None and user.game.type == 1):
# Do not disturb or streaming
status = "🔴"
elif user.status.name == "idle":