DiamondIceNS / Hungrybot

A Hunger Games simulation Discord bot based on BrantSteele's simulator.
MIT License
7 stars 7 forks source link

Make simulation data persistent when bot restarts #4

Open null-domain opened 6 years ago

null-domain commented 6 years ago

I'm currently hosting an instance of this bot on a DigitalOcean droplet after moving it from a "less-than-stable" server, and while I like the bot, it lacks the ability to keep simulation/game data, which would be useful in the event of the server crashing/shutting down or losing connection, the bot being accidentally Ctrl+C'd, or Discord having a major outage.

DiamondIceNS commented 6 years ago

I can't promise I'll get this done immediately, since I'll probably have to completely rewrite the inner state to be happy with it. I'll see what I can do over the next couple days.

DiamondIceNS commented 6 years ago

Just updating you on this, I haven't made too much headway on the change, but I'm rewriting the system to have a sqlite database store. If I manage to finish this, expect the bot to be able to restore all active simulations after a crash. Hopefully it will also pave the way to data-driven simulations that accept custom strings and to save/load simulations like the original website.

null-domain commented 6 years ago

Awesome, great to hear! Looking forward to it.