mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Try start before unsubscribe
This commit is contained in:
@@ -71,13 +71,13 @@ class TwitchService:
|
||||
streamers = await StreamerConfigRepository.all()
|
||||
|
||||
try:
|
||||
eventsub.start()
|
||||
|
||||
logger.info("Unsubscribe from all events...")
|
||||
await eventsub.unsubscribe_all()
|
||||
await sleep(5)
|
||||
logger.info("Unsubscribe from all events done")
|
||||
|
||||
eventsub.start()
|
||||
|
||||
logger.info("Subscribe to events...")
|
||||
await gather(
|
||||
*[self.subscribe_to_streamer(eventsub, streamer) for streamer in streamers]
|
||||
|
||||
Reference in New Issue
Block a user