Skip to content

Commit

Permalink
remove "you are now a member" message
Browse files Browse the repository at this point in the history
it's weird, unnatural, awkward and annoying.
fixes #189
  • Loading branch information
jtbx committed Feb 18, 2024
1 parent 8d9391a commit a4c57b6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bot/events/on_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}!"
)
Expand All @@ -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:
Expand Down

0 comments on commit a4c57b6

Please sign in to comment.