diff options
author | 2020-09-21 11:55:36 +0530 | |
---|---|---|
committer | 2020-09-21 11:55:36 +0530 | |
commit | 8e6b3470381947b64c7c0551ccafae92a7f2ef14 (patch) | |
tree | 1a1e1de04c50d294f34a045bb292ed22d9c23c2c /bot/exts/evergreen/wikipedia.py | |
parent | Changed List[str]->Optional[List[str]] (diff) |
changed titles_no_underscore -> titles
Co-authored-by: Thomas Petersson <[email protected]>
Diffstat (limited to 'bot/exts/evergreen/wikipedia.py')
-rw-r--r-- | bot/exts/evergreen/wikipedia.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py index ab01e1ee..6087a014 100644 --- a/bot/exts/evergreen/wikipedia.py +++ b/bot/exts/evergreen/wikipedia.py @@ -85,7 +85,7 @@ class WikipediaCog(commands.Cog): elif response == 0: await ctx.send(f"Sorry, please give an integer between `1` to `{titles_len}`, {error_msg}") else: - await ctx.send(WIKIPEDIA_URL.format(title=titles_no_underscore[response - 1])) + await ctx.send(WIKIPEDIA_URL.format(title=titles[response - 1].replace(" ", "_"))) break except asyncio.TimeoutError: |