Hello, I have recently created a ranking bot using an updated version of noblox.js, but I am not exactly a pro at this type of stuff, so I have no idea how to account for the fact that every 24 hours, my bot is down due to the fact that the cookie has expired. If anyone knows how this can be fixed, please let me know!
Here is a link to the git repository that I forked:
Is the cookie tied to an account that a human uses? Roblox cookies will expire and change every time certain things are done, like logging in and (maybe) logging out. Consider using a bot account that you do not have to manually log into.
The only issue with bloxy is, There isnt many functions, Most of the time you would have to make HTTP requests directly to Roblox’s api. Even in the dev version its not exactly working, Most of the libs rn are outdated or they relog. It might be ideal for someone to code one that works fully.
Noblox seems to be in the process of discussing the removal of automatic cookie relogging regardless (or making it up to the user), so this may not even be a problem in the future
I’ve had the same issue too in the past, the bot would sometimes die randomly in the night and ROBLOX resetted the cookie, so I have to fix it manually.
The issue with this topic is that he is using Heroku (that doesnt support file writing) so that wouldn’t work either, the user would have to buy a VPS Such as digitalocean, etc
I’m pretty sure Heroku does restart every 24 hours (even when you pay, there is a difference between a Dyno going to sleep & one restarting). Honestly the real problem here is that he uses Heroku and that is it.
Heroku always causes issues in this line of work from personal experience. I would recommend AWS or DigitalOcean.
All free hosts have catches, so it would be ideal to buy a VPS, (theres many out there) Instead of paying for many hosts for my bots i decided to use a pterodactyl panel, (Which separates 1 normal VPS into multiple slots) Currently Ive got them set at 50-75mb ram for each server (and theres about 60 servers)
(Offline ones are ones that arnt being used)
If your running multiple bots, this might be the way to go. (It has worked out for me and my other developers)
I’ve used glitch for some years and my cookie basically never expired except I made some major changes to my project. Just use uptimerobot to keep the project alive.