So, you could just keep the bot running and you won’t have this issue (just saying). I’ve personally moved my bots over to free AWS servers for this reason.
I’m kind of confused by your logic here, because in all honesty, a computer crash could result in the loss of more data than just memory.
I’m repeating myself here, but it’s also common practice for a bot to be running 24/7 minus downtime for updates and network issues. And the beauty of phantombot is that if you don’t like something in it, you can change it (since everything is open source). AnkhBot at one point encrypted their user data, but upon joining StreamElements, they don’t anymore (I think).
To be clear, the ticket data is actually stored in the database. However, the table is cleared on when the bot is shut down (hence being cleared from memory).
I understand the want to keep the table, I really do. However,the problem isn’t with saving it, but loading.
Let’s say you have 1000 users entered into your raffle, ticket count isn’t important. Now let’s say it takes .3 seconds to load each user from the database into the raffle (Assume numbers which are overestimated). That would add an additional 300 seconds to the bots loading. Obviously it would load much faster than my numbers, but this is generally the reason why it’s not a feature.
A good example of this is the points table. Have you ever started your bot up, went into the panel and looked at the points, only for the page to go “dead” for a couple seconds? Yeah, same exact thing.
With a few edits I’m sure you could make the data save through a restart but officially, I don’t see it being supported.
I personally would opt for an option to export the data into a text file that can then be loaded via command.
They like to hide the button. It’s at the very very bottom with a little paypal icon.