Skip to content

Commit

Permalink
Removed role hardcoding in scholar
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanAkkerman committed Dec 22, 2021
1 parent 9d29506 commit dcbfa3b
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 @@ -108,7 +108,7 @@ async def scholar(self, ctx, *input):

if reaction[0].emoji == "\N{WHITE HEAVY CHECK MARK}":
# Add the "Scholar" role
scholar_role = discord.utils.get(ctx.guild.roles, name="Scholar")
scholar_role = discord.utils.get(ctx.guild.roles, name=config["ROLES"]["SCHOLAR"])
await new_scholar.add_roles(scholar_role)

# Add the manager roles
Expand Down Expand Up @@ -168,7 +168,7 @@ async def scholar(self, ctx, *input):
elif reaction[0].emoji == "\N{CROSS MARK}":
await confirm_msg.delete()
await ctx.send(
f"Cancelled addition of new scholar. To add a new scholar, use `!scholar <scholar> <address> <split> <payout_address> <[manager]>` or see `!help scholar`."
f"Cancelled addition of new scholar. To add a new scholar, use `!scholar <scholar name> <address> <split> <payout_address> <[manager]>` or see `!help scholar`."
)

else:
Expand Down

0 comments on commit dcbfa3b

Please sign in to comment.