mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
✏️ 修改版本号为v1.1.0
This commit is contained in:
parent
b767f5500a
commit
173626a638
21
main.go
21
main.go
@ -18,7 +18,7 @@ import (
|
|||||||
|
|
||||||
// 娱乐类
|
// 娱乐类
|
||||||
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_ai_false" // 服务器监控
|
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_ai_false" // 服务器监控
|
||||||
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_minecraft"
|
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_minecraft" // MCSManager
|
||||||
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_music" // 点歌
|
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_music" // 点歌
|
||||||
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_shindan" // 测定
|
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_shindan" // 测定
|
||||||
|
|
||||||
@ -34,20 +34,21 @@ import (
|
|||||||
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_setutime" // 来份涩图
|
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_setutime" // 来份涩图
|
||||||
|
|
||||||
// 以下为内置依赖,勿动
|
// 以下为内置依赖,勿动
|
||||||
zero "github.com/wdvxdr1123/ZeroBot"
|
|
||||||
"github.com/wdvxdr1123/ZeroBot/driver"
|
|
||||||
"github.com/wdvxdr1123/ZeroBot/message"
|
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
easy "github.com/t-tomalak/logrus-easy-formatter"
|
easy "github.com/t-tomalak/logrus-easy-formatter"
|
||||||
|
zero "github.com/wdvxdr1123/ZeroBot"
|
||||||
|
"github.com/wdvxdr1123/ZeroBot/driver"
|
||||||
)
|
)
|
||||||
|
|
||||||
var content = []string{
|
var (
|
||||||
|
contents = []string{
|
||||||
"* OneBot + ZeroBot + Golang ",
|
"* OneBot + ZeroBot + Golang ",
|
||||||
"* Version 1.0.4 - 2021-07-14 14:09:58.581489207 +0800 CST",
|
"* Version 1.1.0 - 2021-08-06 23:36:29 +0800 CST",
|
||||||
"* Copyright © 2020 - 2021 Kanri, DawnNights, Fumiama, Suika",
|
"* Copyright © 2020 - 2021 Kanri, DawnNights, Fumiama, Suika",
|
||||||
"* Project: https://github.com/FloatTech/ZeroBot-Plugin",
|
"* Project: https://github.com/FloatTech/ZeroBot-Plugin",
|
||||||
}
|
}
|
||||||
|
banner = strings.Join(contents, "\n")
|
||||||
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
log.SetFormatter(&easy.Formatter{
|
log.SetFormatter(&easy.Formatter{
|
||||||
@ -60,7 +61,7 @@ func init() {
|
|||||||
func main() {
|
func main() {
|
||||||
fmt.Print(
|
fmt.Print(
|
||||||
"======================[ZeroBot-Plugin]======================",
|
"======================[ZeroBot-Plugin]======================",
|
||||||
"\n", strings.Join(content, "\n"), "\n",
|
"\n", banner, "\n",
|
||||||
"============================================================\n",
|
"============================================================\n",
|
||||||
) // 启动打印
|
) // 启动打印
|
||||||
zero.Run(zero.Config{
|
zero.Run(zero.Config{
|
||||||
@ -84,9 +85,7 @@ func main() {
|
|||||||
// 帮助
|
// 帮助
|
||||||
zero.OnFullMatchGroup([]string{"help", "/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.Send(banner)
|
||||||
message.Text(strings.Join(content, "\n")),
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
select {}
|
select {}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user