grinder icon indicating copy to clipboard operation
grinder copied to clipboard

bot_config.json and development

Open Liminiens opened this issue 6 years ago • 3 comments
trafficstars

Now everyone has to create it manually, maybe there is a way to do it better.

Liminiens avatar May 03 '19 16:05 Liminiens

Alright, we have a couple of options here I'm aware of.

  1. Provide an example configuration file (bot_config.example.json) and instruct users to copy it to bot_config.json themselves.
  2. Provide an example configuration right in the bot_config.json file, but provide a customization (either build-time or run-time) so the users are able to override the defaults stated there.
  3. Add a command-line configuration (to either directly read the bot config parameters from the command line arguments, or to provide a configuration file path through a command line), and let the users to manage the configs themselves.

All of these allows you to safely .gitignore your own config and do not block the build while other configs aren't present.

ForNeVeR avatar May 04 '19 14:05 ForNeVeR

Is this issue actual? After #18 we change configuration flow, and README.md will contain examples

Keroosha avatar Sep 28 '19 10:09 Keroosha

I'll check after #18 gets merged.

ForNeVeR avatar Sep 28 '19 10:09 ForNeVeR