aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/uwu.py
diff options
context:
space:
mode:
authorGravatar AbooMinister25 <[email protected]>2022-08-08 18:09:24 -0400
committerGravatar AbooMinister25 <[email protected]>2022-08-08 18:09:24 -0400
commit6be0e91d1b7282febd39415fd33e6d3f6a0b0581 (patch)
treee6ae70f23637bc659aa63bae9e5495e34cb64a23 /bot/exts/fun/uwu.py
parentAdd a check for whether an embed is already available via the embeds list, an... (diff)
Refactored methods _get_discord_message, _get_text_and_embed, and _convert_embed into bot/utils/messages.py
Diffstat (limited to 'bot/exts/fun/uwu.py')
-rw-r--r--bot/exts/fun/uwu.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/exts/fun/uwu.py b/bot/exts/fun/uwu.py
index ed8925e5..60a5834d 100644
--- a/bot/exts/fun/uwu.py
+++ b/bot/exts/fun/uwu.py
@@ -9,7 +9,7 @@ from discord.ext import commands
from discord.ext.commands import Cog, Context, clean_content
from bot.bot import Bot
-from bot.utils import helpers
+from bot.utils import helpers, messages
if t.TYPE_CHECKING:
from bot.exts.fun.fun import Fun # pragma: no cover
@@ -185,14 +185,14 @@ class Uwu(Cog):
if fun_cog:
# Grabs the text from the embed for uwuification
if embeds:
- embed = fun_cog._convert_embed(self._uwuify, embeds[0])
+ embed = messages.convert_embed(self._uwuify, embeds[0])
else:
# Parse potential message links in text
- text, embed = await fun_cog._get_text_and_embed(ctx, text)
+ text, embed = await messages.get_text_and_embed(ctx, text)
# If an embed is found, grab and uwuify its text
if embed:
- embed = fun_cog._convert_embed(self._uwuify, embed)
+ embed = messages.convert_embed(self._uwuify, embed)
else:
embed = None