1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00

Discordsentry integration, stuff, more stuff

This commit is contained in:
Steffo 2018-04-12 18:04:30 +02:00
parent 6b1ad32f7c
commit baf9d2ad15

View file

@ -183,6 +183,11 @@ async def on_message(message: discord.Message):
await loop.run_in_executor(executor, session.commit) await loop.run_in_executor(executor, session.commit)
else: else:
sentry.user_context({ sentry.user_context({
"discord": {
"discord_id": message.author.id,
"name": message.author.name,
"discriminator": message.author.discriminator
},
"royal": { "royal": {
"user_id": user.royal_id "user_id": user.royal_id
} }