Multi-Threading ElBierros connection to IRC
UPDATE This update is finished! Sadly not with the expected result, but bot already got faster by like 40%.
ElBierro was never intended to host sooo many streams, but well, now there are more than 1300 streamers ElBierro is serving at the moment. ElBierro connects with one connection and joins all these 1300 streams and that one process as to process all the incoming messages. Thats not very effective, especially with all the PCG streamers using the PCG module. Thats why I gotta rebuild the bots connection to Twitch to be multi-threaded.
On Friday, I'll re-do the connection to Twitch Chat and split the bot up to initially 20 connections. That means, that at the current state around 70 streamers are on each connection. This should speed up the bot A TON since the workload of processing messages is spread out from 1 to 20 workers. Imagine it like in a factory.. 20 people produce more parts than just a single person.
With that and yesterdays PCG module re-write, the bot should be future-proof for now. :)
Making the Bot rejoin your channel
ElBierro will attempt to (re)join your channel when you go live or when you login on its website. This way, if you renamed your channel, at the latest at that point the Bot should be back in your channel again. If you are not live, just loggin out and back in on the website should have the same result.
PCG module updated
7.5 hours of work is done!
- Fully rewrote the PCG module to support the new database and being better to extend with new features
- ElBierro now supports Alolan, Galarian and Hisuian mons in spawns and the query/tryhard commands
- Tryhard command now shows single stat values
- Fixed wrong move effectiveness values
- Fixed some other issues :D
- Spawn message speed up failed, sadly. There is one more To-Do I need to do before ElBierro is faster which takes me 3 more hours of work soon and also a short downtime! But the PCG module supports now scaling, being ready for thousands of more users.
Told it today on stream.. but also for you guys: I'll probably start soon to do a monthly "Bot-A-Thon" on my channel (wopiTV) (since ElBierro is a verified bot, I may not stream on that account, so gotta do it on mine).
Its like Sub-A-Thon - just for the Bot.
I plan to develop at least 6 hours on stream. You guys in Chat can influence what features I do while streaming. Stream gets extended by Donations/Subs/Bits/Support in CaptainTV games, so the more support gets in, the longer I work on the bots ToDo list. Sure, there will be sleep breaks, but as long support comes in I'll code also for days. :)
I do not have enough time to work on ElBierro features since I rely on paid work and this might be a nice way to fund ElBierro a bit while I work on making the bot better and better. :)
I really dislike making "Sellout-Streams", but for the bot and the development work I feel its worth it. Details and date for the first bot-a-thon soon.