From e75a68b3b33c5c3dd4bd91604f52c78ea44af22b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 22 Mar 2017 19:34:47 +0100 Subject: [PATCH] fics --- grandbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grandbot.py b/grandbot.py index 6c8d107d..9cbab121 100644 --- a/grandbot.py +++ b/grandbot.py @@ -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":