Skip to content

Commit

Permalink
lowercase Discord roles
Browse files Browse the repository at this point in the history
  • Loading branch information
kylrth committed Sep 1, 2023
1 parent 569bdb8 commit 55fa34d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions pkg/bouncerbot/guildinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
)

const (
professorRole = "Professor"
professorRole = "professor"
taRole = "TA"
studentLeadershipRole = "Student Leadership"
alumniBoardRole = "Alumni Board"
studentLeadershipRole = "student leadership"
alumniBoardRole = "alumni board"
newbieRole = "newbie"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/bouncerbot/guildinfo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ var (
}
profRole = discordgo.Role{
ID: "e",
Name: "Professor",
Name: "professor",
}
taRole = discordgo.Role{
ID: "f",
Name: "TA",
}
slRole = discordgo.Role{
ID: "g",
Name: "Student Leadership",
Name: "student leadership",
}
boardRole = discordgo.Role{
ID: "h",
Name: "Alumni Board",
Name: "alumni board",
}
newbieRole = discordgo.Role{
ID: "i",
Expand Down
6 changes: 3 additions & 3 deletions pkg/bouncerbot/testdata/TestGetGuildInfo/empty/test.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error {"msg":"role info not found","role":"Professor"}
error {"msg":"role info not found","role":"professor"}
error {"msg":"role info not found","role":"TA"}
error {"msg":"role info not found","role":"Student Leadership"}
error {"msg":"role info not found","role":"Alumni Board"}
error {"msg":"role info not found","role":"student leadership"}
error {"msg":"role info not found","role":"alumni board"}
error {"msg":"role info not found","role":"newbie"}
4 changes: 2 additions & 2 deletions pkg/bouncerbot/testdata/TestGetGuildInfo/missingSome/test.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
error {"msg":"role info not found","role":"Professor"}
error {"msg":"role info not found","role":"Student Leadership"}
error {"msg":"role info not found","role":"professor"}
error {"msg":"role info not found","role":"student leadership"}
error {"msg":"role info not found","role":"newbie"}
Empty file.
Empty file.

0 comments on commit 55fa34d

Please sign in to comment.