add !pm autoreply

This commit is contained in:
Aine
2023-09-23 17:09:18 +03:00
parent 480c99cf79
commit 8f3a74d46c
5 changed files with 134 additions and 24 deletions

View File

@@ -119,7 +119,8 @@ func (b *Bot) setOption(ctx context.Context, name, value string) {
}
}
if name == config.RoomSignature {
if name == config.RoomAutoreply ||
name == config.RoomSignature {
value = strings.Join(b.parseCommand(evt.Content.AsMessage().Body, false)[1:], " ")
}