🔖 ZeroBot 版本 1.0.0 正式版

This commit is contained in:
Yiwen-Chan 2021-04-18 22:08:00 +08:00
parent c208e1b120
commit d680fbaa4f

20
main.go
View File

@ -27,12 +27,14 @@ func init() {
} }
func main() { func main() {
var declare = `====================[ZeroBot-Plugin]==================== fmt.Print(`
====================[ZeroBot-Plugin]====================
* OneBot + ZeroBot + Golang * OneBot + ZeroBot + Golang
* Version 1.0.0 - 2021-04-18 21:52:10.261947 +0800 CST
* Copyright © 2021 Kanri, DawnNights, All Rights Reserved * Copyright © 2021 Kanri, DawnNights, All Rights Reserved
* Project: https://github.com/Yiwen-Chan/ZeroBot-Plugin * Project: https://github.com/Yiwen-Chan/ZeroBot-Plugin
========================================================` ========================================================
fmt.Println(declare) // 启动打印 `) // 启动打印
zero.Run(zero.Config{ zero.Run(zero.Config{
NickName: []string{"椛椛"}, NickName: []string{"椛椛"},
CommandPrefix: "/", CommandPrefix: "/",
@ -42,11 +44,15 @@ func main() {
}, },
}) })
// 帮助 // 帮助
zero.OnFullMatchGroup([]string{"/help", ".help", "菜单", "帮助"}, zero.OnlyToMe).SetBlock(true).SetPriority(999). zero.OnFullMatchGroup([]string{"help", "/help", ".help", "菜单", "帮助"}, zero.OnlyToMe).SetBlock(true).SetPriority(999).
Handle(func(ctx *zero.Ctx) { Handle(func(ctx *zero.Ctx) {
ctx.SendChain( ctx.SendChain(message.Text(
message.Text(declare), "* OneBot + ZeroBot + Golang ", "\n",
) "* Version 1.0.0 - 2021-04-18 21:52:10.261947 +0800 CST", "\n",
"* Copyright © 2021 Kanri, DawnNights, All Rights Reserved ", "\n",
"* Project: https://github.com/Yiwen-Chan/ZeroBot-Plugin",
))
}) })
select {} select {}
} }