Added UWUify Command

This commit is contained in:
licyb200 2022-03-01 12:37:23 -08:00
parent 85ac05c337
commit 1dc55eaff2
1 changed files with 18 additions and 0 deletions

View File

@ -69,6 +69,24 @@ class FunCog(commands.Cog):
embed.colour = cmn.colours.good
await ctx.send(embed=embed)
@commands.command(name="uwuify", aliases=["uwu"], category=cmn.Cats.FUN)
async def _uwuify(self, ctx: commands.Context, *, msg: str):
uwuified_text = ''
for i, c in enumerate(msg):
previous_char = msg[i - 1] if i > 0 else ''
if c == 'L' or c == 'R':
uwuified_text += 'W'
elif c == 'l' or c == 'r':
uwuified_text += 'w'
elif c == 'O' or c == 'o':
if previous_char == 'N' or previous_char == 'n' or previous_char == 'M' or previous_char == 'm':
uwuified_text += "yo"
else:
uwuified_text += c
else:
uwuified_text += c
await ctx.send(uwuified_text)
def setup(bot: commands.Bot):
bot.add_cog(FunCog(bot))