From e657e0f82ce475e4d166cdb4b74df0db7aa4d199 Mon Sep 17 00:00:00 2001 From: Socket <136875354+SocketOfficial@users.noreply.github.com> Date: Tue, 16 Apr 2024 20:28:27 +0530 Subject: [PATCH] Fixed the an member bug to a member But, don't worry. When someone becomes a active member, it will show an active member, and once they become a member it show "a". --- 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 d59f45a..aeab530 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 {'a' if role_name[0].lower() not in 'aeiou' else 'an'} {role_name}!" + f"Congratulations {message.author.mention}, you are now {'an' if role_name[0].lower() in 'aeiou' else 'a'} {role_name}!" ) result = await self.db.raw_exec_select(