fix wolfram too
This commit is contained in:
parent
95f4a91406
commit
5ae31ccc51
@ -48,11 +48,11 @@ class ActualUtils(commands.Cog):
|
|||||||
os.remove(file_path)
|
os.remove(file_path)
|
||||||
|
|
||||||
@commands.command(name="ask", aliases=["wolfram"])
|
@commands.command(name="ask", aliases=["wolfram"])
|
||||||
async def ask(self, ctx: commands.Context):
|
async def ask(self, ctx: commands.Context, *, query):
|
||||||
import questions
|
import questions
|
||||||
|
|
||||||
await ctx.reply(
|
await ctx.reply(
|
||||||
questions.answer_question(ctx.message.content),
|
questions.answer_question(query),
|
||||||
)
|
)
|
||||||
|
|
||||||
@commands.command(name="openai")
|
@commands.command(name="openai")
|
||||||
|
@ -7,7 +7,7 @@ import help_methods
|
|||||||
|
|
||||||
def answer_question(message):
|
def answer_question(message):
|
||||||
"""
|
"""
|
||||||
answer_question(question)
|
answer_question(message)
|
||||||
|
|
||||||
Submits a request to the wolfram API and returns the response
|
Submits a request to the wolfram API and returns the response
|
||||||
If no answer is found, tries wikipedia. If that fails, apologizes
|
If no answer is found, tries wikipedia. If that fails, apologizes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user