mirror of
https://github.com/kurbezz/discord-bot.git
synced 2026-03-03 22:20:47 +01:00
Fix
This commit is contained in:
@@ -72,7 +72,6 @@ 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,
|
||||||
@@ -80,6 +79,7 @@ class TwitchService:
|
|||||||
message_deduplication_history_length=50
|
message_deduplication_history_length=50
|
||||||
)
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
await eventsub.unsubscribe_all()
|
await eventsub.unsubscribe_all()
|
||||||
|
|
||||||
eventsub.start()
|
eventsub.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user