Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from bertiebaggio/master
Browse files Browse the repository at this point in the history
Update evt.reply to use 'allow_html' + bump ver
  • Loading branch information
TomCasavant authored Dec 3, 2019
2 parents 0ed2de2 + 3b74458 commit 5da505c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion maubot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maubot: 0.1.0
id: casavant.tom.poll

# A PEP 440 compliant version string.
version: 1.0.0
version: 1.0.1

# The SPDX license identifier for the plugin. https://spdx.org/licenses/
# Optional, assumes all rights reserved if omitted.
Expand Down
4 changes: 2 additions & 2 deletions poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def handler(self, evt: MessageEvent, poll_setup: str) -> None:
)
response = f"{question}<br />{choice_list}"

await evt.reply(response, html_in_markdown=True)
await evt.reply(response, allow_html=True)

@poll.subcommand("vote", help="Votes for an option")
@command.argument(
Expand All @@ -106,7 +106,7 @@ async def handler(self, evt: MessageEvent, choice: int) -> None:
@poll.subcommand("results", help="Prints out the current results of the poll")
async def handler(self, evt: MessageEvent) -> None:
await evt.mark_read()
await evt.reply(self.currentPoll.get_results(), html_in_markdown=True)
await evt.reply(self.currentPoll.get_results(), allow_html=True)

@poll.subcommand("close", help="Ends the poll")
async def handler(self, evt: MessageEvent) -> None:
Expand Down

0 comments on commit 5da505c

Please sign in to comment.