Randomizing bluesky posts with streamer bot code, when going live
I'm using the free Bluesky auto-post source code from Tawmae for my Twitch stream, and I've managed to get it working with a custom message.
Right now, it posts a single message like this whenever I go live:
🏮 The lantern has been lit!
I'm live!
Come relax with some cozy pixel art.
www. lorem . com < filler for twitch url
What I'm trying to figure out is whether it's possible to modify the code so that it randomly chooses from several pre-written messages instead of always posting the same one.
For example, I'd like to have 5–10 different messages like:
- 🏮 The lantern has been lit! Cozy art is underway!
- ✨ Grab a warm drink and come hang out while I work on some art!
- 🎨 Time to create something cozy! I'm live on Twitch.
- 🌙 The lantern is glowing again! Come chill and watch some art.
- 🏮 Another cozy art stream has begun! Hope to see you there.
Then, whenever I go live, it would randomly pick one of those messages to post to Bluesky.
I'm still fairly new to coding, so I'm not sure if this is something that can be done within the existing source code or if it would require a bigger rewrite.
Has anyone done something similar, or could point me in the right direction?
Thanks in advance for help!