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

When updating the config, keep the previous file if the new one is malformed #35

Open
thibaultamartin opened this issue Oct 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@thibaultamartin
Copy link
Collaborator

Hebbot crashes when the configuration file is not properly formatted, which can happen quite easily (e.g. when putting the value of the order field between single quotes instead of nothing, or when omitting the usual_reporters field).

It would make Hebbot a lot more solid if it kept a previous version of the config file and performed a rollback in case of crash: without it, there's a need for a technical administrator to manually update the config file instead of just running !update-config after correcting the issue.

Alternatively, Hebbot could run the update_config_command when it starts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant