1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00
This commit is contained in:
Steffo 2018-12-29 01:50:37 +01:00
parent f072cd7249
commit ec713c345e

View file

@ -644,7 +644,7 @@ class RoyalDiscordBot(discord.Client):
if member.activity.state is not None: if member.activity.state is not None:
message += f" ({escape(member.activity.state)} | {escape(member.activity.details)})" message += f" ({escape(member.activity.state)} | {escape(member.activity.details)})"
except AttributeError: except AttributeError:
message += f" (⚠️)" pass
elif member.activity.type == discord.ActivityType.streaming: elif member.activity.type == discord.ActivityType.streaming:
message += f" | 📡 [{escape(member.activity.name)}]({escape(member.activity.url)})" message += f" | 📡 [{escape(member.activity.name)}]({escape(member.activity.url)})"
elif member.activity.type == discord.ActivityType.listening: elif member.activity.type == discord.ActivityType.listening: