fix: lint errors

This commit is contained in:
Felipe M 2025-04-22 11:56:33 +02:00
parent abcd3c3c44
commit 763a451251
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
10 changed files with 91 additions and 55 deletions

View file

@ -44,14 +44,7 @@ func New(creator ReminderCreator) *Reminder {
func (r *Reminder) OnMessage(msg *model.Message, config map[string]interface{}) []*model.Message {
// Only process replies to messages
if msg.ReplyTo == "" {
return []*model.Message{
{
Text: "Please reply to a message with `!remindme <duration>` to set a reminder.",
Chat: msg.Chat,
Channel: msg.Channel,
ReplyTo: msg.ID,
},
}
return nil
}
// Check if the message is a reminder command