Compare commits

...
2 Commits
Author SHA1 Message Date
Dustin Pianalto 37e8fa52af Fix bug in getting tasks
CI / build (push) Has been cancelled
2021-06-22 12:58:42 -08:00
Dustin Pianalto a370c76ba4 Add Auto Role Feature
CI / build (push) Has been cancelled
2021-06-22 02:20:08 -08:00
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -325,7 +325,7 @@ func makeAutoRoleCommandFunc(ctx disgoman.Context, args []string) {
return return
} }
} }
_, _ = ctx.Send(fmt.Sprintf("%s will be added to all new memebers.", r.Name))
} }
var RemoveAutoRoleCommand = &disgoman.Command{ var RemoveAutoRoleCommand = &disgoman.Command{
@@ -385,5 +385,5 @@ func removeAutoRoleCommandFunc(ctx disgoman.Context, args []string) {
return return
} }
} }
_, _ = ctx.Send(fmt.Sprintf("%s will no longer be added to all new memebers.", r.Name))
} }
+1
View File
@@ -100,6 +100,7 @@ func getTasksToRun() []Task {
res, err := postgres.DB.Query(query, time.Now()) res, err := postgres.DB.Query(query, time.Now())
if err != nil { if err != nil {
log.Println(err) log.Println(err)
return nil
} }
var tasks []Task var tasks []Task
for res.Next() { for res.Next() {