1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Fix cv bug

This commit is contained in:
Steffo 2020-01-17 18:29:25 +01:00
parent 53824e990c
commit c839ea2aca

View file

@ -77,7 +77,8 @@ class CvCommand(Command):
activity += f" | 📺 {mact['name']}"
# Custom Status
elif mact["type"] == 4:
activity += f" | ❓ {mact['state']}"
if "state" in activity:
activity += f" | ❓ {mact['state']}"
else:
raise ExternalError(f"Unknown Discord activity type: {mact['type']}")