From f89ff780f5c86046d0d7df12ab4f3d8b18ab5c22 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Tue, 18 Oct 2022 14:13:07 -0700 Subject: [PATCH] fix owo --- app/cogs/anime_girls.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/cogs/anime_girls.py b/app/cogs/anime_girls.py index 4c4ea573..5c8809e2 100644 --- a/app/cogs/anime_girls.py +++ b/app/cogs/anime_girls.py @@ -1,6 +1,7 @@ +from discord import option from discord.ext import commands -import get_from_reddit import core_utils +import get_from_reddit import requests @@ -311,14 +312,15 @@ class AnimeGirls(commands.Cog): ) ) - @commands.slash_command( - guild_ids=None, name="owo", description="Posts a gif of an anime girl owoing" + @commands.slash_command(guild_ids=None, name="owo", description="owo-afies text") + @option( + name="input_string", description="The text you want owo-afied", required=True ) - async def owo(self, ctx: commands.Context): + async def owo(self, ctx: commands.Context, input_string: str): from owotext import OwO uwu = OwO() - await ctx.respond(uwu.whatsthis(" ".join(ctx.message.content.split()[1:]))) + await ctx.respond(uwu.whatsthis(input_string)) def setup(bot):