diff options
author | Emile <hanemile@protonmail.com> | 2020-02-23 16:37:37 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-02-23 16:37:37 +0100 |
commit | df5f46bb21d31fc623be5f2b87f438d5f5aa88fc (patch) | |
tree | ea762b54aca59e7d751af26ec717d23babd927ea /src | |
parent | 34a6351379da5f0b2b7d9dbe4d24ba277b9e4368 (diff) |
logrus
Diffstat (limited to 'src')
-rw-r--r-- | src/init.go | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/init.go b/src/init.go index 679e01b..b512ecb 100644 --- a/src/init.go +++ b/src/init.go @@ -2,16 +2,28 @@ package main import ( "fmt" - "log" "math/rand" + "strings" "time" r2pipe "github.com/radare/r2pipe-go" + "github.com/sirupsen/logrus" ) +func buildBots(config *Config) { + + logrus.Info("Building all bots") + + // build all the bots + for i := 0; i < config.AmountOfBots; i++ { + buildBot(i, config) + } +} + // buildBot builds the bot located at the given path. -func buildBot(config Config, path string) Bot { - log.Println("[+] Building the bot") +func buildBot(i int, config *Config) { + + logrus.Debugf("Building bot %d", i) // open radare without input for building the bot r2p1, err := r2pipe.NewPipe("--") |