Skip to content

Commit

Permalink
add S1 Mentor role
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenkii committed Jul 13, 2024
1 parent 1ae1bb0 commit 88be5dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-bot",
"version": "1.5.1",
"version": "1.5.2",
"scripts": {
"run": "tsc && node ./dist/src/index.js",
"commands:update": "rimraf ./dist && tsc && node ./dist/scripts/registerCommands.js",
Expand Down
2 changes: 1 addition & 1 deletion src/http/apiController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async function updateMember(req: Request, res: Response) {
}
}
if (mentorRole) {
if (roleNamesArray.filter(x => ['EDGG Mentor','EDMM Mentor','EDWW Mentor'].includes(x)).length > 0) {
if (roleNamesArray.filter(x => ['EDGG Mentor','EDMM Mentor','EDWW Mentor', 'S1 Mentor'].includes(x)).length > 0) {
await guildMember?.roles.add(mentorRole);
} else {
await guildMember?.roles.remove(mentorRole);
Expand Down
1 change: 1 addition & 0 deletions src/utils/departmentRolesMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ map.set('EDWW Event', '1107562913448865884');
map.set('EDMM Event', '1107563076942827531');
map.set('PMP Mentor', '1108030536284385330');
map.set('PTD Trainer', '1107774004758057001');
map.set('S1 Mentor', '1261601668835835934');

// Dev Map
// const map = new Map();
Expand Down

0 comments on commit 88be5dd

Please sign in to comment.