Closed exeloar closed 4 months ago
after subscribing, you have to keep the asyncio loop (and with it the thread) alife using something like this:
try:
while True:
await asyncio.sleep(1)
finally:
eventsub.stop()
await twitch.close()
I fixed it with a combination of this & also putting it on its own event loop. Thanks for the help
I've been trying to use the library functionality through the embedded OBS-Studio Scripting page to perform OBS actions on a channel point eventsub event.
I have the script initialize and start up the async twitch calls (
asyncio.run()
) when OBS-studio starts up, but this causes crashing & indefinite hang on the async function. I've also tried making a new asyncio event loop and triggering it on that with the same result.I've started it in a separate thread now (shown below), with no crashing, but this causes the callbacks to never be triggered. Has anyone used the library in conjunction with the OBS scripting platform before and know what might be happening?