diff options
| author | 2024-02-14 00:43:06 +0100 | |
|---|---|---|
| committer | 2024-02-14 10:12:52 +0100 | |
| commit | 4adb57499383e4835848bd5f2c792088ebcf6e74 (patch) | |
| tree | 31c1cdf82ceda496cf33d4111590d8a336bb1972 /arthur/__main__.py | |
| parent | move logger to its own package (diff) | |
setup the sentry integration upon bot startup
Diffstat (limited to 'arthur/__main__.py')
| -rw-r--r-- | arthur/__main__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arthur/__main__.py b/arthur/__main__.py index 6f4a68f..041399b 100644 --- a/arthur/__main__.py +++ b/arthur/__main__.py @@ -9,7 +9,7 @@ from discord.ext import commands import arthur from arthur.bot import KingArthur from arthur.config import CONFIG -from arthur.log import logger +from arthur.log import logger, setup_sentry async def main() -> None: @@ -35,5 +35,7 @@ async def main() -> None: await bot.start(CONFIG.token.get_secret_value()) +setup_sentry() + with logger.catch(): asyncio.run(main()) |