1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-17 10:53:57 +00:00

fics di /cv

This commit is contained in:
Steffo 2016-10-05 23:15:58 +02:00
parent d9c255b939
commit 4d19628c00

20
bot.py
View file

@ -318,16 +318,16 @@ def cv():
# Altrimenti # Altrimenti
else: else:
m['vemoji'] = "" m['vemoji'] = ""
# Controlla il suo stato (online, in gioco, afk) e scegli l'emoji appropriata # Controlla il suo stato (online, in gioco, afk) e scegli l'emoji appropriata
if member['status'] == "online": if member['status'] == "online":
m['emoji'] = chr(128309) m['emoji'] = chr(128309)
elif member['status'] == "idle": elif member['status'] == "idle":
m['emoji'] = chr(9899) m['emoji'] = chr(9899)
elif member['status'] == "dnd": elif member['status'] == "dnd":
m['emoji'] = chr(128308) m['emoji'] = chr(128308)
else: else:
# Stato sconosciuto. Fallback nel caso in cui vengano aggiunti nuovi stati. # Stato sconosciuto. Fallback nel caso in cui vengano aggiunti nuovi stati.
m['emoji'] = chr(2573) m['emoji'] = chr(2573)
# Aggiungi il nome del gioco a destra del nome # Aggiungi il nome del gioco a destra del nome
if 'game' in member: if 'game' in member:
m['gamename'] = member['game']['name'] m['gamename'] = member['game']['name']