up
This commit is contained in:
parent
3192837c49
commit
6763fff733
@ -9,6 +9,6 @@ import (
|
||||
func Help(ctx *zero.Ctx) {
|
||||
ctx.Send(fmt.Sprintf(`欢迎使用NothBot
|
||||
chips 查看剩余筹码
|
||||
注册 注册会员
|
||||
21点 开始21点游戏`))
|
||||
register 注册会员
|
||||
21点/bj 开始21点游戏`))
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"amor/plugin"
|
||||
"amor/plugin/blackjack"
|
||||
"amor/plugin/member"
|
||||
|
||||
@ -8,12 +9,13 @@ import (
|
||||
)
|
||||
|
||||
func Router() {
|
||||
// 注册会员
|
||||
zero.OnFullMatch("注册").Handle(member.Register)
|
||||
zero.OnFullMatch("register").Handle(member.Register)
|
||||
zero.OnFullMatch("chips").Handle(member.GetBalance)
|
||||
zero.OnFullMatch("help").Handle(plugin.Help)
|
||||
|
||||
// 21点游戏
|
||||
zero.OnFullMatch("21点").Handle(blackjack.BlackJackEntry)
|
||||
zero.OnFullMatch("bj").Handle(blackjack.BlackJackEntry)
|
||||
zero.OnCommand("bet").Handle(blackjack.Bet)
|
||||
zero.OnFullMatch("hit").Handle(blackjack.Hit)
|
||||
zero.OnFullMatch("stand").Handle(blackjack.Stand)
|
||||
|
Loading…
x
Reference in New Issue
Block a user