Sometimes, not often, but sometimes, something good flows out of something bad.
After more than a week of testing without significant problems, my attention to this script was somewhat weakened. Everything went well and, after the (failed) HF on Hive I already had / have enough work rewriting different bots ...
So today I paid no attention at all for most of the day and of course he had been waiting for that ... THE BUG!
Tonight when I checked if everything was still running, I noticed that there had been no upvotes for more than 5 hours!
First curses of course, but miraculously I found the source of the problem within 5 minutes.
Hidden deep in the code I found an IF THEN ELSE for some rare scenario where I ... had no action associated with the ELSE ... just completely forgot it 🙄
So, why that Yeehaa you will ask ...
Well, to be honest, I was already starting to worry that no problems had surfaced during the week of testing. A whole week of testing a new script without any problems ... that's shady, isn't it? I'm not that good 😉 😎
But more importantly, it allowed me to test a portion of the script that I hadn't tested before ...
After a restart, did the script still look up and upvote the missed posts?
And yes, perfect! It works like a charm!
Ultimately, that bug saved me a lot of testing time ...
Of course I have to apologize to my trail followers ... that upvote catch-up will have meant a hefty bite out of your VP for some of you. But don't forget ... it's for a good cause 😁
Anyway, if everything goes like it is going now, I hope to officially launch the bot within a few weeks. Invite-only at first, I want to gradually increase the number of users and keep testing ... but I think I'm almost there ...
I just hope the blurt team doesn't make any exotic code tweaks or HF in the meantime ... as some did. 🙃😜🙃