Skip to content

Commit

Permalink
chore: update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Primexz committed May 2, 2024
1 parent e415625 commit 81725fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,18 @@ func run() {

if initialRun {
calculateTimeOfNextOrder()
logNextOrder()
}

if (timeOfNextOrder.Before(time.Now()) || newFiatMoney) && !initialRun {
log.Println("Placing bitcoin purchase order. ₿")

kraken.BuyBtc()

calculateTimeOfNextOrder()
logNextOrder()
}
}

func logNextOrder() {
log.Println("Next order in", fmtDuration(time.Until(timeOfNextOrder)), timeOfNextOrder)
}

0 comments on commit 81725fd

Please sign in to comment.