21 lines
527 B
Go
21 lines
527 B
Go
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, "<b>Sintassi</b>\n/roll <i>cosa1</i> <i>[cosa2]</i> ..\n\n<b>Cose supportate</b>\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) {
|
|
|
|
}
|