always reply to a specific message; moved matrix-related utils to the linkpearl; refactoring

This commit is contained in:
Aine
2023-09-27 12:43:55 +03:00
parent e2f5f4c731
commit 816db6f409
18 changed files with 270 additions and 279 deletions

View File

@@ -101,7 +101,7 @@ func (b *Bot) onBotJoin(ctx context.Context) {
return
}
b.sendIntroduction(ctx, evt.RoomID)
b.sendIntroduction(evt.RoomID)
b.sendHelp(ctx)
}
@@ -124,7 +124,7 @@ func (b *Bot) onLeave(ctx context.Context) {
b.runStop(ctx)
_, err := b.lp.GetClient().LeaveRoom(evt.RoomID)
if err != nil {
b.Error(ctx, evt.RoomID, "cannot leave empty room: %v", err)
b.Error(ctx, "cannot leave empty room: %v", err)
}
}
}