barrucadu / yukibot

An IRC bot, and associated libraries, for the ##compsoc-uk-anime channel on Freenode
MIT License
10 stars 2 forks source link

Configuration #37

Closed barrucadu closed 8 years ago

barrucadu commented 8 years ago

JSON isn't so great, but configuration is necessary. TOML looks nice, and the htoml library implements it.

Furthermore, configuration should be read-only, unlike the current yukibot, where configuration is rewritten on quit. This is bad because unexpected termination can mess up the config.

The actual configuration may change during execution, due to (eg) #39. There should be a way to dump the actual configuration to a new file, so allow for hand-merging if desired.

barrucadu commented 8 years ago

Having a way to regenerate and dump the actual run-time config would be a massive pain, and is not really necessary. But the rest is done.