From f98487423c1f506530472649d088051daa214140 Mon Sep 17 00:00:00 2001 From: ydoco Date: Tue, 16 Feb 2021 20:14:29 -0800 Subject: [PATCH] added code to line #643 for the tolower commands --- bot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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