Skip to content

Commit

Permalink
Removed verified hardcoding in !scholar
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanAkkerman committed Dec 22, 2021
1 parent 4c9f226 commit 9d29506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cogs/commands/scholar.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def scholar(self, ctx, *input):
except AttributeError:
raise commands.UserNotFound(input[0])

if "Verified" in [r.name for r in scholar_roles]:
if config["ROLES"]["VERIFIED"] in [r.name for r in scholar_roles]:
# Get managers info
try:
manager_ids = [
Expand Down Expand Up @@ -189,7 +189,7 @@ async def scholar_error(self, ctx, error):
)
elif isinstance(error, commands.UserNotFound):
await ctx.send(
f"Sorry, the new scholar is not yet verified. Ask them to verify themselves first."
f"Sorry, the new scholar does not yet have the role {config['ROLES']['VERIFIED']}. Ask them to verify themselves first."
)
elif isinstance(error, commands.UserInputError):
await ctx.send(
Expand Down

0 comments on commit 9d29506

Please sign in to comment.