Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep state between shutdowns #18

Open
astapa opened this issue Jun 21, 2016 · 1 comment
Open

Keep state between shutdowns #18

astapa opened this issue Jun 21, 2016 · 1 comment

Comments

@astapa
Copy link
Member

astapa commented Jun 21, 2016

We want to be able to save settings and other things that were modified while the bot was running, so that when it boots back up, it returns to the same state as the one it was shut down in.

@jellopudding
Copy link
Member

I'd like to note that the settings json file is currently opened with only read access. we could possibly open with "w+" or "r+" and do a Json.dump(ds, settings, etc) before closing the settings file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants