mirror of
https://github.com/maubot/maubot
synced 2025-08-29 22:20:40 +00:00
Fix passive command regex compiling and send m.notices by default
This commit is contained in:
parent
ba6bbead12
commit
b805641ea4
4 changed files with 11 additions and 4 deletions
|
@ -46,7 +46,9 @@ func (evt *EventFuncsImpl) MarkRead() error {
|
|||
}
|
||||
|
||||
func (evt *EventFuncsImpl) Reply(text string) (string, error) {
|
||||
return evt.ReplyContent(format.RenderMarkdown(text))
|
||||
content := format.RenderMarkdown(text)
|
||||
content.MsgType = gomatrix.MsgNotice
|
||||
return evt.ReplyContent(content)
|
||||
}
|
||||
|
||||
func (evt *EventFuncsImpl) ReplyContent(content gomatrix.Content) (string, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue