This commit is contained in:
2024-08-09 23:21:19 +02:00
parent 4a8e068453
commit 02f71c7aae

View File

@@ -72,14 +72,14 @@ class TwitchService:
print("on_stream_offline", event) print("on_stream_offline", event)
async def run(self): async def run(self):
try: eventsub = EventSubWebhook(
eventsub = EventSubWebhook( callback_url=config.TWITCH_CALLBACK_URL,
callback_url=config.TWITCH_CALLBACK_URL, port=config.TWITCH_CALLBACK_PORT,
port=config.TWITCH_CALLBACK_PORT, twitch=self.twitch,
twitch=self.twitch, message_deduplication_history_length=50
message_deduplication_history_length=50 )
)
try:
await eventsub.unsubscribe_all() await eventsub.unsubscribe_all()
eventsub.start() eventsub.start()