discord-sentry-reporting
discord-sentry-reporting
takes a discord.py Client
object, and makes it so errors are reported to Sentry.
Download
PyPI Package discord-sentry-reportingUsage
Here is an example bot that uses it:
import discord
from discord_sentry_reporting import use_sentry
bot = discord.AutoShardedClient()
use_sentry(
bot,
dsn="[email protected]"
# pass any other keyword arguments here
# they will be passed to the Sentry SDK
)
@bot.event
async def on_message(message):
assert 1 == 0
# resulting AssertionError will be reported!
bot.run("token")