diff --git a/bot b/bot index 12e5e9f..c870259 100755 Binary files a/bot and b/bot differ diff --git a/bot.go b/bot.go index 5e2ea59..6452dc7 100644 --- a/bot.go +++ b/bot.go @@ -140,7 +140,10 @@ func main() { if err != nil { panic("Error loading .env file") } - startNonce, _ := strconv.Atoi(os.Args[1]) + startNonce := int(0) + if len(os.Args) > 1 { + startNonce, _ = strconv.Atoi(os.Args[1]) + } breakTime, _ := strconv.Atoi(os.Getenv("BREAK_TIME")) for { sendOrder(new(big.Int).SetUint64(uint64(startNonce)))