优化 banner

This commit is contained in:
源文雨
2023-03-01 12:22:14 +08:00
parent 0e52bbe0f7
commit 1c274d6eb8
8 changed files with 32 additions and 18 deletions

View File

@@ -1,2 +1,12 @@
// Package console sets console's behavior on init
package console
import (
"fmt"
"github.com/FloatTech/ZeroBot-Plugin/kanban/banner"
)
func init() {
fmt.Print("\033]0;ZeroBot-Blugin " + banner.Version + " " + banner.Copyright + "\007")
}

View File

@@ -11,7 +11,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/FloatTech/ZeroBot-Plugin/kanban"
"github.com/FloatTech/ZeroBot-Plugin/kanban/banner"
)
var (
@@ -78,7 +78,7 @@ func init() {
// windows 带颜色 log 自定义格式
logrus.SetFormatter(&LogFormat{})
err = setConsoleTitle("ZeroBot-Blugin " + kanban.Version + " " + kanban.Copyright)
err = setConsoleTitle("ZeroBot-Blugin " + banner.Version + " " + banner.Copyright)
if err != nil {
panic(err)
}