Skip to content

Commit

Permalink
Update giveroles.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AHanadsaker authored Jan 25, 2024
1 parent 2f5df27 commit 43ff396
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions src/commands/giveroles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,45 +135,6 @@ export class VerifyCommand extends Command {
return;
}
}
console.log(user.roles.length);

if (user.roles.length > 0) {
for (let i = 0; i < user.roles.length; i++) {
if (user.roles[i].facility == "ZAE") {
break;
}
if (user.roles[i].facility != "ZMA") {
break;
}
//Really pointless since the role bot is not able to assign roles higher than itself
switch (user.roles[i].role) {
case "ATM":
roles.push(await interaction.guild?.roles.fetch(config.atm));
break;
case "DATM":
roles.push(await interaction.guild?.roles.fetch(config.datm));
break;
case "TA":
roles.push(await interaction.guild?.roles.fetch(config.ta));
break;
case "FE":
roles.push(await interaction.guild?.roles.fetch(config.fe));
break;
case "EC":
roles.push(await interaction.guild?.roles.fetch(config.ec));
break;
case "WM":
roles.push(await interaction.guild?.roles.fetch(config.wm));
break;
case "MTR":
roles.push(await interaction.guild?.roles.fetch(config.mtr));
break;
case "FACCBT":
roles.push(await interaction.guild?.roles.fetch(config.mtr));
break;
}
}
}

console.log(roles);

Expand Down

0 comments on commit 43ff396

Please sign in to comment.