1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-17 10:53:57 +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,6 +77,7 @@ class CvCommand(Command):
activity += f" | 📺 {mact['name']}" activity += f" | 📺 {mact['name']}"
# Custom Status # Custom Status
elif mact["type"] == 4: elif mact["type"] == 4:
if "state" in activity:
activity += f" | ❓ {mact['state']}" activity += f" | ❓ {mact['state']}"
else: else:
raise ExternalError(f"Unknown Discord activity type: {mact['type']}") raise ExternalError(f"Unknown Discord activity type: {mact['type']}")