[Wolfram] No location info please and thanks

This commit is contained in:
aikaterna
2020-05-25 10:00:18 -07:00
committed by GitHub
parent dfc5f71b18
commit f6e0a7e6d8

View File

@@ -33,6 +33,9 @@ class Wolfram(commands.Cog):
url = "http://api.wolframalpha.com/v2/query?"
query = " ".join(question)
if "where am i" in query.lower():
await asyncio.sleep(1)
return await ctx.send("There is as yet insufficient data for a meaningful answer.")
payload = {"input": query, "appid": api_key}
headers = {"user-agent": "Red-cog/2.0.0"}
async with self.session.get(url, params=payload, headers=headers) as r: