[Wolfram] Overwrite ip address info in images

This commit is contained in:
aikaterna
2020-05-25 11:55:13 -07:00
committed by GitHub
parent f05dad4f5e
commit 5c5eb1c6eb

View File

@@ -71,7 +71,7 @@ class Wolfram(commands.Cog):
units = "metric"
query = " ".join(arguments)
query = urllib.parse.quote(query)
url = f"http://api.wolframalpha.com/v1/simple?appid={api_key}&i={query}%3F&width={width}&fontsize={font_size}&layout={layout}&background={background}&foreground={foreground}&units={units}"
url = f"http://api.wolframalpha.com/v1/simple?appid={api_key}&i={query}%3F&width={width}&fontsize={font_size}&layout={layout}&background={background}&foreground={foreground}&units={units}&ip=127.0.0.1"
async with ctx.typing():
async with self.session.request("GET", url) as r: