From 3b74458628963e71bcf7e415af3e8528b99f53a9 Mon Sep 17 00:00:00 2001 From: bertiebaggio <7524620+bertiebaggio@users.noreply.github.com> Date: Mon, 2 Dec 2019 13:02:11 +0000 Subject: [PATCH] Update evt.reply to use 'allow_html' + bump ver Change in maubot 1d03fd83df88c3b271b9fe0b638384b105796258 https://github.com/maubot/maubot/commit/1d03fd83df88c3b271b9fe0b638384b105796258 --- maubot.yaml | 2 +- poll.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/maubot.yaml b/maubot.yaml index e936361..361a2ce 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -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. diff --git a/poll.py b/poll.py index c0736e2..39bd5ee 100644 --- a/poll.py +++ b/poll.py @@ -82,7 +82,7 @@ async def handler(self, evt: MessageEvent, poll_setup: str) -> None: ) response = f"{question}
{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( @@ -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: