Implemented requested changes to UwUify Command & Changelog

This commit is contained in:
licyb200 2022-03-01 21:17:19 -08:00
parent 2453d20757
commit 5aefcabb3c
2 changed files with 4 additions and 6 deletions

View File

@ -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.

View File

@ -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)