Skip to content

Commit

Permalink
Maybe this will fix the, You are now an member bug to you are now a m…
Browse files Browse the repository at this point in the history
…ember

It shows you are an active member by default so it's okay, but it also shows you are now an member which it should not, so fixed it!
  • Loading branch information
SocketOfficial authored May 6, 2024
1 parent d5aa426 commit 481819c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/events/on_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def addToRole(message, role_name, role_color):
break
# Congradulates user :D
await message.channel.send(
f"Congratulations {message.author.mention}, you are now {'an' if role_name[0].lower() in 'aeiou' else 'a'} {role_name}!"
f"Congratulations {message.author.mention}, you are now {'an' if role_name.lower().startswith(('a', 'e', 'i', 'o', 'u')) else 'a'} {role_name}!"
)

result = await self.db.raw_exec_select(
Expand Down

0 comments on commit 481819c

Please sign in to comment.