This commit is contained in:
nothamor 2024-05-27 18:16:26 +08:00
parent 3192837c49
commit 6763fff733
2 changed files with 6 additions and 4 deletions

View File

@ -9,6 +9,6 @@ import (
func Help(ctx *zero.Ctx) {
ctx.Send(fmt.Sprintf(`欢迎使用NothBot
chips 查看剩余筹码
注册 注册会员
21 开始21点游戏`))
register 注册会员
21/bj 开始21点游戏`))
}

View File

@ -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)