Wont work since you can dynamically stop and run more bot sessions.
As i said, the time you have left would need to be updated constantly, so that every bot session is always up-to-date. Now compared to the current system it would multiply the work load by a lot.
My code is assuming everything is still being billed in the exact same manner it currently is: per bot per account. "Updated constantly" means checking a timestamp once per minute per bot and comparing. That's pretty much negligible to a server.
This is the entirety of the code that's running "constantly" (once a minute, if you can call that constant). It's basically nothing: Once an hour, the if statement will return true and more code will run.
Code:
int timestamp2 = generatetimestamp();
int runtime = timestamp2 - timestamp1
if (runtime >= bottimeremaining)
If the servers couldn't handle that, runemate wouldn't be functional. All those cloud-based features take up FAR more computing power than that snippet.
Your time previously purchased with that bot is simply stored in a SQL database between sessions. Database only needs to be accessed on load and exit, so that's not a huge concern.
You don't need to run continuous checks every second. There's no need for that. Thanks to back-billing overages, worst case scenario is that a user gets away with 59 seconds of botting, per bot, per account, per lifetime. Not per session. Per lifetime. That's assuming they happen to time things absolutely perfectly. For a bot that charges $0.10 per hour, that means they'll get $0.0016 (less than a quarter of one cent) of free botting. For the lifetime of their account.
Assuming they run 10 different bots on 100 accounts (both being HUGE numbers) at $0.10/hour, AND all of those happen to be perfectly timed to give them that maximum of 59 seconds extra after their wallet runs out.They got away with... $1.63 of free bot time. After spending a bare minimum (1 hour each bot on each account) of $100. Or maybe $2,000. Or maybe $40,000. That $1.63? Negligible.
For a more realistic version: 4 bots, used on two accounts. Only updating once a minute means they could potentially "get away with" $0.013. of free service during their lifetime.
Updating every second is not necessary.