Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
HsukqiLee authored Jul 20, 2022
1 parent 4a1d464 commit 85e859b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ func init() {
w := flag.Bool("w", false, "Enable warning level log and higher.")
h := flag.Bool("h", false, "Display this help.")
// 直接写死 AccessToken 时,请更改下面第二个参数
token := flag.String("t", "", "Set AccessToken of WSClient.")
token := flag.String("t", "chU6jni87YDB7hdk9PXh3", "Set AccessToken of WSClient.")
// 直接写死 URL 时,请更改下面第二个参数
url := flag.String("u", "ws://127.0.0.1:6700", "Set Url of WSClient.")
url := flag.String("u", "ws://127.0.0.1:4446", "Set Url of WSClient.")
// 默认昵称
adana := flag.String("n", "椛椛", "Set default nickname.")
adana := flag.String("n", "Champion", "Set default nickname.")
prefix := flag.String("p", "/", "Set command prefix.")
runcfg := flag.String("c", "", "Run from config file.")
save := flag.String("s", "", "Save default config to file and exit.")
Expand Down Expand Up @@ -200,7 +200,7 @@ func init() {
}

// 通过代码写死的方式添加主人账号
// sus = append(sus, 12345678)
sus = append(sus, 3152680003)
// sus = append(sus, 87654321)

if *runcfg != "" {
Expand Down Expand Up @@ -248,7 +248,7 @@ func init() {
func main() {
rand.Seed(time.Now().UnixNano()) // 全局 seed,其他插件无需再 seed
// 帮助
zero.OnFullMatchGroup([]string{"/help", ".help", "菜单"}, zero.OnlyToMe).SetBlock(true).
zero.OnFullMatchGroup([]string{"/help", "功能列表", "你会啥", "帮助", "你会什么"}, zero.OnlyToMe).SetBlock(true).
Handle(func(ctx *zero.Ctx) {
ctx.SendChain(message.Text(kanban.Banner, "\n可发送\"/服务列表\"查看 bot 功能"))
})
Expand Down

0 comments on commit 85e859b

Please sign in to comment.