From 7ffa9a5e217657abacf147b5679e3229f3c65a0e Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Mon, 10 Feb 2025 17:35:37 -0800 Subject: [PATCH] Adding a big text function --- app/cogs/cheeky_functions.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/cogs/cheeky_functions.py b/app/cogs/cheeky_functions.py index 2fdf2e87..bd32e8e4 100755 --- a/app/cogs/cheeky_functions.py +++ b/app/cogs/cheeky_functions.py @@ -381,6 +381,24 @@ class Cheeky(commands.Cog): async def freebird(self, ctx: commands.Context): await ctx.respond("https://youtu.be/xTemcPZw8Eo?t=210") + @commands.slash_command( + guild_ids=None, + name="bigtext", + description="Returns your text in big letters", + ) + @option( + name="input_string", + description="The text you want to make big", + required=True, + ) + async def bigtext(self, ctx: commands.Context, input_string: str): + final = [ + ":regional_indicator_{}:".format(c) if c != " " else " " + for c in input_string + ] + + await ctx.respond("".join(final)) + def setup(bot): bot.add_cog(Cheeky(bot))