mirror of https://github.com/velour/catbase.git
reminder: accidentally a you
This commit is contained in:
parent
2ffbc6fb93
commit
4644f1893c
|
@ -333,6 +333,9 @@ func reminderer(p *ReminderPlugin) {
|
||||||
}
|
}
|
||||||
|
|
||||||
message := fmt.Sprintf("Hey %s, %s wanted you to be reminded: %s", reminder.who, reminder.from, reminder.what)
|
message := fmt.Sprintf("Hey %s, %s wanted you to be reminded: %s", reminder.who, reminder.from, reminder.what)
|
||||||
|
if reminder.who == reminder.from {
|
||||||
|
message = fmt.Sprintf("Hey %s, %s wanted to be reminded: %s", reminder.who, reminder.from, reminder.what)
|
||||||
|
}
|
||||||
p.Bot.SendMessage(reminder.channel, message)
|
p.Bot.SendMessage(reminder.channel, message)
|
||||||
|
|
||||||
if err := p.deleteReminder(reminder.id); err != nil {
|
if err := p.deleteReminder(reminder.id); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue