diff options
Diffstat (limited to 'src/config.go')
-rw-r--r-- | src/config.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/config.go b/src/config.go index 44e9f21..577862c 100644 --- a/src/config.go +++ b/src/config.go @@ -56,3 +56,20 @@ func parseConfig() Config { return config } + +// define bots defines the bots given via command line arguments +func defineBots(config *Config) { + + logrus.Info("Defining the bots") + + // define a list of bots by parsing the command line arguments one by one + var bots []Bot + for i := 0; i < config.AmountOfBots; i++ { + bot := Bot{ + Path: flag.Arg(i), + } + bots = append(bots, bot) + } + + config.Bots = bots +} |