about summary refs log tree commit diff
path: root/src/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.go')
-rw-r--r--src/init.go18
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("--")