aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Anubhav <[email protected]>2020-09-21 15:54:21 +0530
committerGravatar GitHub <[email protected]>2020-09-21 15:54:21 +0530
commit2571f9e88f492ece4a09fc38913acaaffc4cc5e6 (patch)
treefbb6c1e89c67aefe60d3a8997224b7e86023a2a5 /bot
parentremoved s from title (diff)
Update bot/exts/evergreen/wikipedia.py
Co-authored-by: Thomas Petersson <[email protected]>
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/evergreen/wikipedia.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py
index b097e606..dc003aea 100644
--- a/bot/exts/evergreen/wikipedia.py
+++ b/bot/exts/evergreen/wikipedia.py
@@ -22,9 +22,9 @@ class WikipediaCog(commands.Cog):
self.http_session = bot.http_session
@staticmethod
- def formatted_wiki_url(index: int, titles: str) -> str:
- """Making formatted wikipedia link."""
- return f'`{index}` [{titles}]({WIKIPEDIA_URL.format(title=titles.replace(" ", "_"))})'
+ def formatted_wiki_url(index: int, title: str) -> str:
+ """Formating wikipedia link with index and title."""
+ return f'`{index}` [{title}]({WIKIPEDIA_URL.format(title=title.replace(" ", "_"))})'
async def search_wikipedia(self, search_term: str) -> List[str]:
"""Search wikipedia and return the first 10 pages found."""