I have been upgrading the panel a little lately.
automatically replace banned accounts, on a per-script level
automatically replace finished accounts on AB's, if they report their success to logfile
staggering launching of instances is now possible
Small example of the handiwork:
if config.BannedAction != 0 {
Helpers.KillBot(id, customer)
if config.BannedAction == -1 {
_, err = Storage.GetDb().Exec("DELETE FROM accounts WHERE id = ?", id)
if err != nil {
fmt.Println("Daemon:", err)
}
} else if config.BannedAction == -2 {
// something but i forgot
} else if config.BannedAction > 0 {
_, err = Storage.GetDb().Exec("UPDATE accounts SET schedule = 0, proxy_id = 0, group_id = ? WHERE id = ?", config.BannedAction, id)
if err != nil {
fmt.Println("Daemon:", err)
}
}
fmt.Println("Daemon:", name, "has been tagged as banned")
botsClosed++
}
if Helpers.Replenish(scriptId, groupId, schedule, customer) {
botsStarted++
}