xmpp-discord-bridge/xmpp_discord_bridge/helpers.py

10 lines
347 B
Python
Raw Normal View History

2021-09-15 20:33:59 +00:00
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")