Adding a big text function
This commit is contained in:
parent
080eff9b62
commit
7ffa9a5e21
@ -381,6 +381,24 @@ class Cheeky(commands.Cog):
|
|||||||
async def freebird(self, ctx: commands.Context):
|
async def freebird(self, ctx: commands.Context):
|
||||||
await ctx.respond("https://youtu.be/xTemcPZw8Eo?t=210")
|
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):
|
def setup(bot):
|
||||||
bot.add_cog(Cheeky(bot))
|
bot.add_cog(Cheeky(bot))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user