From 35cd742f03f92b6cb412d65a37bdf2d0a59ec0e2 Mon Sep 17 00:00:00 2001 From: Yiwen-Chan Date: Sun, 18 Apr 2021 22:08:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20ZeroBot=20=E7=89=88=E6=9C=AC=201?= =?UTF-8?q?.0.0=20=E6=AD=A3=E5=BC=8F=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 929209b8..982af4be 100644 --- a/main.go +++ b/main.go @@ -27,12 +27,14 @@ func init() { } func main() { - var declare = `====================[ZeroBot-Plugin]==================== + fmt.Print(` +====================[ZeroBot-Plugin]==================== * OneBot + ZeroBot + Golang +* Version 1.0.0 - 2021-04-18 21:52:10.261947 +0800 CST * Copyright © 2021 Kanri, DawnNights, All Rights Reserved * Project: https://github.com/Yiwen-Chan/ZeroBot-Plugin -========================================================` - fmt.Println(declare) // 启动打印 +======================================================== +`) // 启动打印 zero.Run(zero.Config{ NickName: []string{"椛椛"}, 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) { - ctx.SendChain( - message.Text(declare), - ) + ctx.SendChain(message.Text( + "* 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 {} }