Skip to content

Commit

Permalink
wiki lookup is async too now whoooooops
Browse files Browse the repository at this point in the history
  • Loading branch information
Chlorophytus committed Sep 20, 2024
1 parent 46db321 commit 4786c6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chloresolve/chloresolve/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.4.0+rev59"
__version__ = "1.4.0+rev60"
2 changes: 1 addition & 1 deletion chloresolve/chloresolve/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async def wiki(args: dispatch.Arguments):
if can_use:
if len(args.chanargs) > 1:
article: str = " ".join(args.chanargs[1:])
wiki_lookup = mediawiki.PageLookup("https://en.wikipedia.org/w/api.php")
wiki_lookup = await mediawiki.PageLookup("https://en.wikipedia.org/w/api.php")
try:
description: str = wiki_lookup.query(article)
await args.resolver.message(args.channel, args.nickname, description)
Expand Down

0 comments on commit 4786c6e

Please sign in to comment.