diff options
author | 2021-09-21 20:16:45 +0300 | |
---|---|---|
committer | 2021-09-21 20:16:45 +0300 | |
commit | 0794f26ea267c355e106366a1226f3e986a682fc (patch) | |
tree | 9000182848efc697a068c5fd190f357f5cae1500 /bot/exts/fun/fun.py | |
parent | Merge pull request #873 from python-discord/no-hangman-multiplayer (diff) |
Replaced the old implementation for uwuification with a smarter approach
Diffstat (limited to 'bot/exts/fun/fun.py')
-rw-r--r-- | bot/exts/fun/fun.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/bot/exts/fun/fun.py b/bot/exts/fun/fun.py index b148f1f3..773c2ffb 100644 --- a/bot/exts/fun/fun.py +++ b/bot/exts/fun/fun.py @@ -17,20 +17,6 @@ from bot.utils import helpers log = logging.getLogger(__name__) -UWU_WORDS = { - "fi": "fwi", - "l": "w", - "r": "w", - "some": "sum", - "th": "d", - "thing": "fing", - "tho": "fo", - "you're": "yuw'we", - "your": "yur", - "you": "yuw", -} - - def caesar_cipher(text: str, offset: int) -> Iterable[str]: """ Implements a lazy Caesar Cipher algorithm. @@ -74,23 +60,6 @@ class Fun(Cog): else: raise BadArgument(f"`{Client.prefix}roll` only supports between 1 and 6 rolls.") - @commands.command(name="uwu", aliases=("uwuwize", "uwuify",)) - async def uwu_command(self, ctx: Context, *, text: clean_content(fix_channel_mentions=True)) -> None: - """Converts a given `text` into it's uwu equivalent.""" - conversion_func = functools.partial( - utils.replace_many, replacements=UWU_WORDS, ignore_case=True, match_case=True - ) - text, embed = await Fun._get_text_and_embed(ctx, text) - # Convert embed if it exists - if embed is not None: - embed = Fun._convert_embed(conversion_func, embed) - converted_text = conversion_func(text) - converted_text = helpers.suppress_links(converted_text) - # Don't put >>> if only embed present - if converted_text: - converted_text = f">>> {converted_text.lstrip('> ')}" - await ctx.send(content=converted_text, embed=embed) - @commands.command(name="randomcase", aliases=("rcase", "randomcaps", "rcaps",)) async def randomcase_command(self, ctx: Context, *, text: clean_content(fix_channel_mentions=True)) -> None: """Randomly converts the casing of a given `text`.""" |