diff options
| author | 2021-02-09 03:26:02 -0800 | |
|---|---|---|
| committer | 2021-02-09 03:26:02 -0800 | |
| commit | 9441c7284e4230b96ce0cd79e6fa86f457530f3c (patch) | |
| tree | 612b70fbf04fbf296670b22abc58cc52c99a3baa /bot/exts | |
| parent | Merge pull request #554 from ChrisLovering/docker-compse-env-file (diff) | |
| parent | Apply mock locations to every subcommands (diff) | |
Merge pull request #582 from python-discord/wolfram-mock-locations
Add location mocks to the wolfram cog
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/evergreen/wolfram.py | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/bot/exts/evergreen/wolfram.py b/bot/exts/evergreen/wolfram.py index 898e8d2a..437d9e1a 100644 --- a/bot/exts/evergreen/wolfram.py +++ b/bot/exts/evergreen/wolfram.py @@ -108,7 +108,10 @@ async def get_pod_pages(ctx: Context, bot: commands.Bot, query: str) -> Optional              "input": query,              "appid": APPID,              "output": DEFAULT_OUTPUT_FORMAT, -            "format": "image,plaintext" +            "format": "image,plaintext", +            "location": "the moon", +            "latlong": "0.0,0.0", +            "ip": "1.1.1.1"          })          request_url = QUERY.format(request="query", data=url_str) @@ -168,6 +171,9 @@ class Wolfram(Cog):          url_str = parse.urlencode({              "i": query,              "appid": APPID, +            "location": "the moon", +            "latlong": "0.0,0.0", +            "ip": "1.1.1.1"          })          query = QUERY.format(request="simple", data=url_str) @@ -248,6 +254,9 @@ class Wolfram(Cog):          url_str = parse.urlencode({              "i": query,              "appid": APPID, +            "location": "the moon", +            "latlong": "0.0,0.0", +            "ip": "1.1.1.1"          })          query = QUERY.format(request="result", data=url_str) | 
