aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Gintautas Kazlauskas <[email protected]>2022-02-24 23:55:51 +0200
committerGravatar GitHub <[email protected]>2022-02-24 23:55:51 +0200
commit7752633904149f0a5a445bb3eeab14d7ab9a014f (patch)
tree3cbecde03a32ed994c1c46964074f9131633fc63 /bot
parentrun isort (diff)
Update bot/exts/fun/uwu.py
Co-authored-by: Bluenix <[email protected]>
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/fun/uwu.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/bot/exts/fun/uwu.py b/bot/exts/fun/uwu.py
index 7b088f35..4ceb76c7 100644
--- a/bot/exts/fun/uwu.py
+++ b/bot/exts/fun/uwu.py
@@ -114,11 +114,14 @@ class Uwu(Cog):
'.uwu Hello, my name is John' returns something like
'hewwo, m-my name is j-john nyaa~'.
"""
- text, embed = await Fun._get_text_and_embed(ctx, text)
-
- # Grabs the text from the embed for uwuification.
- if embed is not None:
- embed = Fun._convert_embed(self._uwuify, embed)
+ if (fun_cog := ctx.bot.get_cog("Fun")):
+ text, embed = await fun_cog._get_text_and_embed(ctx, text)
+
+ # Grabs the text from the embed for uwuification.
+ if embed is not None:
+ embed = fun_cog._convert_embed(self._uwuify, embed)
+ else:
+ embed = None
converted_text = self._uwuify(text)
converted_text = helpers.suppress_links(converted_text)