This repository has been archived on 2023-07-05. You can view files and clone it, but cannot push or open issues or pull requests.
clessy/mods-toupdate/roll.go

22 lines
527 B
Go
Raw Permalink Normal View History

2018-04-03 10:07:06 +00:00
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) {
}