From 5ae31ccc51beae4a1580b1c6a8e52a514f4a4493 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sat, 24 Sep 2022 15:37:17 -0700 Subject: [PATCH] fix wolfram too --- app/cogs/actual_utils.py | 4 ++-- app/questions.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/cogs/actual_utils.py b/app/cogs/actual_utils.py index 9dbe599f..ab792f71 100644 --- a/app/cogs/actual_utils.py +++ b/app/cogs/actual_utils.py @@ -48,11 +48,11 @@ class ActualUtils(commands.Cog): os.remove(file_path) @commands.command(name="ask", aliases=["wolfram"]) - async def ask(self, ctx: commands.Context): + async def ask(self, ctx: commands.Context, *, query): import questions await ctx.reply( - questions.answer_question(ctx.message.content), + questions.answer_question(query), ) @commands.command(name="openai") diff --git a/app/questions.py b/app/questions.py index 973374a4..30ac66f5 100644 --- a/app/questions.py +++ b/app/questions.py @@ -7,7 +7,7 @@ import help_methods def answer_question(message): """ - answer_question(question) + answer_question(message) Submits a request to the wolfram API and returns the response If no answer is found, tries wikipedia. If that fails, apologizes