mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 07:05:36 +01:00
Fix
This commit is contained in:
@@ -131,8 +131,11 @@ class TwitchService:
|
|||||||
async def start(cls):
|
async def start(cls):
|
||||||
logger.info("Starting Twitch service...")
|
logger.info("Starting Twitch service...")
|
||||||
|
|
||||||
twith = await authorize(auto_refresh_auth=True)
|
try:
|
||||||
await cls(twith).run()
|
twith = await authorize(auto_refresh_auth=True)
|
||||||
|
await cls(twith).run()
|
||||||
|
except Exception as e:
|
||||||
|
logger.error("Twitch service failed", exc_info=e)
|
||||||
|
|
||||||
logger.info("Twitch service stopped")
|
logger.info("Twitch service stopped")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user