From 6c1a8c13fc7f595736a13c68148d1058a46140d7 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sun, 17 May 2020 10:57:45 -0400 Subject: [PATCH] sms: add help text --- plugins/sms/sms.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/sms/sms.go b/plugins/sms/sms.go index 9fc94a8..1794524 100644 --- a/plugins/sms/sms.go +++ b/plugins/sms/sms.go @@ -135,7 +135,13 @@ func (p *SMSPlugin) message(c bot.Connector, kind bot.Kind, message msg.Message, func (p *SMSPlugin) help(c bot.Connector, kind bot.Kind, message msg.Message, args ...interface{}) bool { ch := message.Channel - p.b.Send(c, bot.Message, ch, "There is no help for you.") + m := fmt.Sprintf("You can register your number with: `%s`", regRegex) + m += fmt.Sprintf("\nYou can send a message to a user with: `%s`", sendRegex) + m += "\nYou can deregister with: `delete my sms`" + m += fmt.Sprintf("\nAll messages sent to %s will come to the channel.", + p.c.Get("TWILIONUMBER", "unknown")) + m += "\nAll reminders with registered users will be sent to their SMS number." + p.b.Send(c, bot.Message, ch, m) return true }