mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 07:05:36 +01:00
Fix
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user