This commit is contained in:
2024-12-14 19:26:15 +01:00
parent 441f57e6ad
commit b6667ecc8e

View File

@@ -152,6 +152,7 @@ class TwitchService:
await self._check_token() await self._check_token()
finally: finally:
logger.info("Twitch service stopping...")
await self.stop(eventsub) await self.stop(eventsub)
@classmethod @classmethod
@@ -161,6 +162,8 @@ class TwitchService:
twith = await authorize(auto_refresh_auth=True) twith = await authorize(auto_refresh_auth=True)
await cls(twith).run() await cls(twith).run()
logger.info("Twitch service stopped")
async def start_twitch_service() -> NoReturn: async def start_twitch_service() -> NoReturn:
await TwitchService.start() await TwitchService.start()