aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/fun.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-08-23 14:38:17 +0100
committerGravatar GitHub <[email protected]>2020-08-23 14:38:17 +0100
commit113a6345861289c7138eaa19deb2645dc602bbb3 (patch)
tree1f3945c5ac9393c9ebcd719b6640f3381f19c13a /bot/exts/evergreen/fun.py
parentAdded one more topic to #async. (diff)
parentRemove whitespace from fun.py (diff)
Merge branch 'master' into python-topics
Diffstat (limited to 'bot/exts/evergreen/fun.py')
-rw-r--r--bot/exts/evergreen/fun.py26
1 files changed, 10 insertions, 16 deletions
diff --git a/bot/exts/evergreen/fun.py b/bot/exts/evergreen/fun.py
index 67a4bae5..36a13ac0 100644
--- a/bot/exts/evergreen/fun.py
+++ b/bot/exts/evergreen/fun.py
@@ -47,11 +47,7 @@ class Fun(Cog):
@commands.command(name="uwu", aliases=("uwuwize", "uwuify",))
async def uwu_command(self, ctx: Context, *, text: str) -> None:
- """
- Converts a given `text` into it's uwu equivalent.
-
- Also accepts a valid discord Message ID or link.
- """
+ """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
)
@@ -67,11 +63,7 @@ class Fun(Cog):
@commands.command(name="randomcase", aliases=("rcase", "randomcaps", "rcaps",))
async def randomcase_command(self, ctx: Context, *, text: str) -> None:
- """
- Randomly converts the casing of a given `text`.
-
- Also accepts a valid discord Message ID or link.
- """
+ """Randomly converts the casing of a given `text`."""
def conversion_func(text: str) -> str:
"""Randomly converts the casing of a given string."""
return "".join(
@@ -97,12 +89,14 @@ class Fun(Cog):
Union[Embed, None]: The embed if found in the valid Message, else None
"""
embed = None
- message = await Fun._get_discord_message(ctx, text)
- if isinstance(message, Message):
- text = message.content
- # Take first embed because we can't send multiple embeds
- if message.embeds:
- embed = message.embeds[0]
+
+ # message = await Fun._get_discord_message(ctx, text)
+ # if isinstance(message, Message):
+ # text = message.content
+ # # Take first embed because we can't send multiple embeds
+ # if message.embeds:
+ # embed = message.embeds[0]
+
return (text, embed)
@staticmethod