Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffcasavant committed Feb 11, 2023
1 parent 6d35d63 commit 17869c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion headlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_config_class(cls) -> Type[BaseProxyConfig]:
@command.argument("headline", pass_raw=True, required=True)
async def handler(self, evt: MessageEvent, headline: str) -> None:
self.log.debug("Looking up \"%s\"", headline)
url = lookup(self.http, self.config["newsapi_api_key"], headline)
url = await lookup(self.http, self.config["newsapi_api_key"], headline)

if url:
await evt.reply(url)
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@ profile = "black"
[tool.maubot]
maubot = "0.1.0"
modules = ["headlines"]
main_class = "HeadlinePlugin"
main_class = "HeadlinesPlugin"
database = false
extra_files = [
"base-config.yaml"
]

0 comments on commit 17869c4

Please sign in to comment.