diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ec18c3..458d2a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] - -## [2.7.5] - 2022-03-01 ### Added - UwUify command + ## [2.7.4] - 2021-10-07 ### Added - a new way to support qrm's development. diff --git a/exts/fun.py b/exts/fun.py index a1793cc..9cc1da2 100644 --- a/exts/fun.py +++ b/exts/fun.py @@ -71,10 +71,9 @@ class FunCog(commands.Cog): @commands.command(name="uwuify", aliases=["uwu"], category=cmn.Cats.FUN) async def _uwuify(self, ctx: commands.Context, *, msg: str): - uwuified_text = msg - uwuified_text = uwuified_text.replace('na', 'nya') - uwuified_text = uwuified_text.translate({108: 119, 114: 119, 76: 87, 82: 87}) - uwuified_text = uwuified_text.replace('no', 'yo').replace('mo', 'yo') + """UwUify your text""" + trans_table = msg.maketrans({"l": "w", "L": "W", "r": "w", "R": "W"}) + uwuified_text = msg.replace('na', 'nya').translate(trans_table).replace("no", "yo").replace("mo", "yo") await ctx.send(uwuified_text)