From 6763fff73347e586ab59ec9315f96bce911070f4 Mon Sep 17 00:00:00 2001 From: nothamor Date: Mon, 27 May 2024 18:16:26 +0800 Subject: [PATCH] up --- plugin/help.go | 4 ++-- router/router.go | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugin/help.go b/plugin/help.go index ab98ab8..fb9ca30 100644 --- a/plugin/help.go +++ b/plugin/help.go @@ -9,6 +9,6 @@ import ( func Help(ctx *zero.Ctx) { ctx.Send(fmt.Sprintf(`欢迎使用NothBot chips 查看剩余筹码 -注册 注册会员 -21点 开始21点游戏`)) +register 注册会员 +21点/bj 开始21点游戏`)) } diff --git a/router/router.go b/router/router.go index 4ec6fe2..cd6be42 100644 --- a/router/router.go +++ b/router/router.go @@ -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)