handle exclamation marks
All checks were successful
Build and push / changes (push) Successful in 3s
Build and push / Lint-Python (push) Successful in 2s
Build and push / Build-and-Push-Docker (push) Successful in 4m27s
Build and push / sync-argocd-app (push) Successful in 2s
Build and push / post-status-to-discord (push) Successful in 2s

This commit is contained in:
Luke R 2025-02-11 09:55:03 -08:00
parent 8effb15bf7
commit b85aeeecee

View File

@ -393,8 +393,12 @@ class Cheeky(commands.Cog):
) )
async def bigtext(self, ctx: commands.Context, input_string: str): async def bigtext(self, ctx: commands.Context, input_string: str):
final = [ 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)) await ctx.respond("".join(final))