changeset 49:c7c515afd73b

Make remind help message more helpful
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 10 Dec 2016 18:06:11 +0100
parents f81fa9a0f30e
children ca60b80383eb
files handler_remind.go
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/handler_remind.go	Sat Dec 10 18:04:30 2016 +0100
+++ b/handler_remind.go	Sat Dec 10 18:06:11 2016 +0100
@@ -80,13 +80,14 @@
 
 	if len(parts) < 2 {
 		log.Println("Not enough parts in message:", msg.Text)
-		return replyContent{text: "_Hilfe (z.B.): /remind 26m Irgendwas_"}, nil
+		return replyContent{text: "Tut mir leid, ich verstehe das Format nicht. Bitte benutze +XX{s,m,h,d} oder hh:mm. Zum Beispiel: +23m oder 14:45"},
+			nil
 	}
 
 	alertTime := parseReminderString(parts[0])
 
 	if alertTime.IsZero() {
-		return replyContent{text: "Tut mir leid, ich verstehe das Format nicht. Bitte benutze +XX{s,m,h,d} oder hh:mm"},
+		return replyContent{text: "Tut mir leid, ich verstehe das Format nicht. Bitte benutze +XX{s,m,h,d} oder hh:mm. Zum Beispiel: +23m oder 14:45"},
 			nil
 	}