Skip to content

Commit

Permalink
Merge pull request #44 from acmucsd/mal-board-cmds
Browse files Browse the repository at this point in the history
Enable MAL to use Board commands in Breadbot
  • Loading branch information
skyflaren authored Oct 13, 2023
2 parents 55f9988 + 294ec0b commit 9203581
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export default abstract class Command {
if (!memberRoles) {
return false;
}
const validRole = (role: string) => role.toLowerCase().includes('staff') || role.toLowerCase().includes('board');
const validRole = (role: string) =>
role.toLowerCase().includes('staff') ||
role.toLowerCase().includes('board') ||
role.toLowerCase().includes('members at large');

const isBoard = Array.isArray(memberRoles)
? memberRoles.some(role => validRole(role))
Expand Down

0 comments on commit 9203581

Please sign in to comment.