From ae6e49b75ddc35f85119f749600dd890aa491894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Wed, 15 Mar 2023 07:04:30 +0100 Subject: [PATCH] ![refactor] Bot does now respond with full webhook URL --- CHANGELOG.md | 4 ++++ alertbot.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3ab7bf..ecf2ecb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# March 2023 + +Change `!url` to display the full webhook url not just the base + # December 2022 * Handle sending an alert to a room where the bot is not allowed to send messages [#2](https://github.com/moan0s/alertbot/issues/2) diff --git a/alertbot.py b/alertbot.py index 76a049d..627e45f 100644 --- a/alertbot.py +++ b/alertbot.py @@ -208,7 +208,7 @@ class AlertBot(Plugin): @command.new() async def url(self, evt: MessageEvent) -> None: """Answers with the url of the webhook""" - await evt.reply(f"`{self.webapp_url}/webhook`") + await evt.reply(f"`{self.webapp_url}/webhook/{evt.room_id}`") @command.new() async def raw(self, evt: MessageEvent) -> None: