mirror of https://github.com/miaowware/qrm2.git
Implemented requested changes to UwUify Command & Changelog
This commit is contained in:
parent
2453d20757
commit
5aefcabb3c
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue