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: