diff --git a/pkg/bouncerbot/guildinfo.go b/pkg/bouncerbot/guildinfo.go index bb700b3..2a31849 100644 --- a/pkg/bouncerbot/guildinfo.go +++ b/pkg/bouncerbot/guildinfo.go @@ -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" ) diff --git a/pkg/bouncerbot/guildinfo_test.go b/pkg/bouncerbot/guildinfo_test.go index 9fc2607..b1083fd 100644 --- a/pkg/bouncerbot/guildinfo_test.go +++ b/pkg/bouncerbot/guildinfo_test.go @@ -30,7 +30,7 @@ var ( } profRole = discordgo.Role{ ID: "e", - Name: "Professor", + Name: "professor", } taRole = discordgo.Role{ ID: "f", @@ -38,11 +38,11 @@ var ( } 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", diff --git a/pkg/bouncerbot/testdata/TestGetGuildInfo/empty/test.log b/pkg/bouncerbot/testdata/TestGetGuildInfo/empty/test.log index 09f24dc..62d053a 100644 --- a/pkg/bouncerbot/testdata/TestGetGuildInfo/empty/test.log +++ b/pkg/bouncerbot/testdata/TestGetGuildInfo/empty/test.log @@ -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"} diff --git a/pkg/bouncerbot/testdata/TestGetGuildInfo/missingSome/test.log b/pkg/bouncerbot/testdata/TestGetGuildInfo/missingSome/test.log index 6203372..368d9ce 100644 --- a/pkg/bouncerbot/testdata/TestGetGuildInfo/missingSome/test.log +++ b/pkg/bouncerbot/testdata/TestGetGuildInfo/missingSome/test.log @@ -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"} diff --git a/pkg/bouncerbot/testdata/TestGuildInfo_GetRoleIDsForUser/TA_alum/test.log b/pkg/bouncerbot/testdata/TestGuildInfo_GetRoleIDsForUser/TA_alum/test.log new file mode 100644 index 0000000..e69de29 diff --git a/pkg/bouncerbot/testdata/TestGuildInfo_GetRoleIDsForUser/prof/test.log b/pkg/bouncerbot/testdata/TestGuildInfo_GetRoleIDsForUser/prof/test.log new file mode 100644 index 0000000..e69de29