In my StreamerBot setup I have a C# function that checks if the user is either the streamer or in a group of known bots. This runs in several chat-triggered actions. Getting this thing to work 100% of the time has been an ongoing struggle.
Comments
Log in with your Bluesky account to leave a comment
I know not what sorcery you speak of, wizard... but I commend you for your efforts and dedication. I hope your summoning is successful as I cheer in your name.
I appreciate the offer. I suspect it’s something in how SB handles C# execution. It’s annoying because there’s little to no feedback. I have a few other things I can try before I’m out of ideas.
Several times per stream this code will just fail to execute. I know because I check logs and see a variable not found message. This variable is only set in this code and should be set regardless of how this code runs.
One of the failure states results in my account getting added to a group it should not be added to. Which results in my pfp getting shown in my VIP rotator during my talking scene.
The code itself is fine. No errors related to execution show up in the logs. Just the variable not found triggered from a follow-up sub-action. It’s not a big deal that this happens. But it drives me up the wall on a regular basis.
My latest course of action is to remove concurrency as much as possible. So now every action with a chat-based trigger that runs this code will use the same blocking queue.
I don't think it's a race condition per se. At least not in the sense of stomping on other actions by changing state underneath them. This code is only writing a single argument to the running action itself. I feel like there's some issue preventing the code from even executing at all.
Comments