diff options
author | 2020-09-06 18:20:49 +0530 | |
---|---|---|
committer | 2020-09-06 18:20:49 +0530 | |
commit | 393fae44c059cbcd9feefff97663ce7c0e5652fb (patch) | |
tree | 8039ceb4410af55a67c689da34fdb9a8095a964b | |
parent | corrected index error and solve issue spam issue of wiki command (diff) | |
parent | changed final to titles_no_underscore (diff) |
solved merge conflict
-rw-r--r-- | bot/exts/evergreen/wikipedia.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py index b6714747..c697ea85 100644 --- a/bot/exts/evergreen/wikipedia.py +++ b/bot/exts/evergreen/wikipedia.py @@ -1,7 +1,7 @@ import asyncio import datetime import logging -from typing import Optional, List +from typing import List, Optional from discord import Color, Embed, Member from discord.ext import commands @@ -19,7 +19,7 @@ class WikipediaCog(commands.Cog): self.bot = bot self.http_session = bot.http_session - async def search_wikipedia(self, search_term: str) -> Optional[str]: + async def search_wikipedia(self, search_term: str) -> Optional[list]: """Search wikipedia and return the first page found.""" async with self.http_session.get(SEARCH_API.format(search_term=search_term)) as response: data = await response.json() |