diff --git a/bot.py b/bot.py index b1ebaee..bc81f5d 100644 --- a/bot.py +++ b/bot.py @@ -639,6 +639,8 @@ async def add(ctx, *args): r_had = [] member = ctx.author br = bot_roles(ctx) + # Here is the thing im trying to add - then call brole_lower + brole_lower = {i.name.lowered: i for i in br} if "all" in args: for role in br: @@ -660,7 +662,7 @@ async def add(ctx, *args): #Check if user already had role if not has_role(ctx, role): await member.add_roles(role) - r_success += [arg] + r_success += brole_lower[arg] else: r_had += [arg] except: @@ -747,4 +749,4 @@ async def update(ctx): await ctx.send("Update Script Not Found") #bot.run(os.getenv('TOKEN')) -bot.run(token.stringToken()) +bot.run(token.stringToken()) \ No newline at end of file