Fix bug in interval calculation

This commit is contained in:
Dustin Pianalto 2020-05-01 00:08:39 -08:00
parent edff709667
commit 4fe8419914

View File

@ -67,7 +67,7 @@ func getTasksToRun() []Task {
func ProcessTasks(s *discordgo.Session, interval int) {
for {
time.Sleep(time.Duration(interval))
time.Sleep(time.Duration(interval * 1e9))
tasks := getTasksToRun()