![refactor] Bot does now respond with full webhook URL

This commit is contained in:
Julian-Samuel Gebühr 2023-03-15 07:04:30 +01:00
parent 6fadb6d25e
commit ae6e49b75d
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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: