package main import ( "strings" "github.com/hamcha/tg" ) func roll(broker *tg.Broker, update tg.APIMessage) { if isCommand(update, "roll") { parts := strings.Split(*(update.Text), " ") if len(parts) < 2 { broker.SendTextMessage(update.Chat, "Sintassi\n/roll cosa1 [cosa2] ..\n\nCose supportate\nNumero intero casuale (es. 300, 10-20, 34-100)\nLancio di dadi (es. d6, 2d20, 100d12+10)\nUtente casuale (\"user\")", &update.MessageID) return } } } func rolltoken(token string) { }