2021-09-16 18:12:20 +00:00
|
|
|
from nextcord import Status
|
2021-09-16 10:57:36 +00:00
|
|
|
|
2021-09-15 20:33:59 +00:00
|
|
|
def discord_status_to_xmpp_show(status):
|
|
|
|
return {
|
2021-09-16 10:57:36 +00:00
|
|
|
Status.online: "available",
|
|
|
|
Status.idle: "away",
|
|
|
|
Status.dnd: "dnd",
|
|
|
|
Status.do_not_disturb: "dnd",
|
|
|
|
Status.invisible: "xa", # TODO: Kinda
|
|
|
|
Status.offline: "unavailable"
|
2021-09-15 20:33:59 +00:00
|
|
|
}.get(status, "available")
|