![refactor] Bot does now respond with full webhook URL
This commit is contained in:
parent
6fadb6d25e
commit
ae6e49b75d
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue