From a4c57b69d10d1110fc5c11165adf886b73ed5f4f Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Sun, 18 Feb 2024 15:48:22 +1300 Subject: [PATCH] remove "you are now a member" message it's weird, unnatural, awkward and annoying. fixes #189 --- bot/events/on_message.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/bot/events/on_message.py b/bot/events/on_message.py index d59f45a..0ba7a84 100644 --- a/bot/events/on_message.py +++ b/bot/events/on_message.py @@ -37,7 +37,7 @@ async def addToRole(message, role_name, role_color): if role.name.lower() == role_name.lower(): await message.author.add_roles(role) break - # Congradulates user :D + # Congratulates user :D await message.channel.send( f"Congratulations {message.author.mention}, you are now {'a' if role_name[0].lower() not in 'aeiou' else 'an'} {role_name}!" ) @@ -57,14 +57,6 @@ async def addToRole(message, role_name, role_color): "UPDATE levels SET level = ?, exp = ? WHERE user_id = ?", (result[0][1], result[0][0] + 1, message.author.id), ) - # Adds user to member role if they dont already have it - role_name = "Member" - role_color = discord.Color.dark_teal() - # Checks if user has role first - if role_name.lower() not in [ - x.name.lower() for x in message.author.roles - ]: - await addToRole(message, role_name, role_color) # Add user to active member role if level is 3 if result[0][1] >= 3: