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

Update evt.reply to use 'allow_html' + bump ver #4

Merged
merged 1 commit into from
Dec 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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