10 lines
347 B
Python
10 lines
347 B
Python
def discord_status_to_xmpp_show(status):
|
|
return {
|
|
discord.Status.online: "available",
|
|
discord.Status.idle: "away",
|
|
discord.Status.dnd: "dnd",
|
|
discord.Status.do_not_disturb: "dnd",
|
|
discord.Status.invisible: "xa", # TODO: Kinda
|
|
discord.Status.offline: "unavailable"
|
|
}.get(status, "available")
|