handle exclamation marks

This commit is contained in:
Luke Robles 2025-02-11 09:55:03 -08:00
parent 7ffa9a5e21
commit 47adf49cd0

View File

@ -393,8 +393,12 @@ class Cheeky(commands.Cog):
)
async def bigtext(self, ctx: commands.Context, input_string: str):
final = [
":regional_indicator_{}:".format(c) if c != " " else " "
for c in input_string
(
":exclamation:"
if c == "!"
else ":regional_indicator_{}:".format(c) if c != " " else " "
)
for c in input_string.lower()
]
await ctx.respond("".join(final))