mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
💩👌 make lint happy
This commit is contained in:
parent
54c9857219
commit
1ba4722fc7
@ -14,10 +14,12 @@ var (
|
|||||||
"* Copyright © 2020 - 2022 FloatTech. All Rights Reserved.",
|
"* Copyright © 2020 - 2022 FloatTech. All Rights Reserved.",
|
||||||
"* Project: https://github.com/FloatTech/ZeroBot-Plugin",
|
"* Project: https://github.com/FloatTech/ZeroBot-Plugin",
|
||||||
}
|
}
|
||||||
|
// Banner ...
|
||||||
Banner = strings.Join(info[:], "\n")
|
Banner = strings.Join(info[:], "\n")
|
||||||
reg = registry.NewRegReader("reilia.westeurope.cloudapp.azure.com:32664", "fumiama")
|
reg = registry.NewRegReader("reilia.westeurope.cloudapp.azure.com:32664", "fumiama")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// PrintBanner ...
|
||||||
func PrintBanner() {
|
func PrintBanner() {
|
||||||
fmt.Print(
|
fmt.Print(
|
||||||
"\n======================[ZeroBot-Plugin]======================",
|
"\n======================[ZeroBot-Plugin]======================",
|
||||||
@ -28,6 +30,7 @@ func PrintBanner() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Kanban ...
|
||||||
func Kanban() string {
|
func Kanban() string {
|
||||||
err := reg.Connect()
|
err := reg.Connect()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
// Package kanban 打印版本信息
|
||||||
package kanban
|
package kanban
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
@ -55,7 +55,7 @@ func init() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
db.FindFor(ids, c, "", func() error {
|
_ = db.FindFor(ids, c, "", func() error {
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
defer mu.Unlock()
|
defer mu.Unlock()
|
||||||
eid, err := process.CronTab.AddFunc(c.Cron, inject(id, []byte(c.Cmd)))
|
eid, err := process.CronTab.AddFunc(c.Cron, inject(id, []byte(c.Cmd)))
|
||||||
@ -216,6 +216,8 @@ func rmcmd(bot int64, cron string) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
db.Del(bots, "WHERE cron='"+cron+"'")
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
return db.Del(bots, "WHERE cron='"+cron+"'")
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user