Make config updates-compatible #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
File
config.jsonshould be replaced byconfig_example.jsonor something like that, and admin needs to copy it intoconfig.jsonbefore using the bot. This should enable usinggit pullas an updater option.There's also some room for improvements in terms of comparability.
config.jsonshould be checked on run to make sure all the new keys are on their places and when not update them to their default values. Or every key request byconfigGet()should also check default config and return value from it if key is not in production config.