From 481819c3cf2845c257c9f7e7feb469a14b484e9e Mon Sep 17 00:00:00 2001 From: Socket <136875354+SocketOfficial@users.noreply.github.com> Date: Mon, 6 May 2024 20:32:38 +0530 Subject: [PATCH] Maybe this will fix the, You are now an member bug to you are now a member 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! --- bot/events/on_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/events/on_message.py b/bot/events/on_message.py index aeab530..706d3f8 100644 --- a/bot/events/on_message.py +++ b/bot/events/on_message.py @@ -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(