Example #1
0
func NewFFFBot(name, token string) *FFFBot {
	b := &FFFBot{tg.NewCommandBot(name, token), make(map[int]*Stake)}
	b.OnCommand("fff", b.handleFFF)
	return b
}
Example #2
0
func NewDuanziBot(token string) *DuanziBot {
	b := &DuanziBot{tg.NewCommandBot(token)}
	b.OnCommand("duanzi", b.handleDuanzi)
	return b
}