sms: add help text

This commit is contained in:
Chris Sexton 2020-05-17 10:57:45 -04:00 committed by Chris Sexton
parent e78b22e93e
commit 6c1a8c13fc
1 changed files with 7 additions and 1 deletions

View File

@ -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
}