mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-01-11 07:49:01 +08:00
Merge branch 'master' of https://github.com/FloatTech/ZeroBot-Plugin
This commit is contained in:
commit
e6c00e9b68
@ -10,7 +10,7 @@ import (
|
|||||||
var (
|
var (
|
||||||
info = [...]string{
|
info = [...]string{
|
||||||
"* OneBot + ZeroBot + Golang",
|
"* OneBot + ZeroBot + Golang",
|
||||||
"* Version 1.5.0-beta1 - 2022-07-03 09:51:04 +0800 CST",
|
"* Version 1.5.0-beta2 - 2022-07-03 18:24:34 +0800 CST",
|
||||||
"* 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",
|
||||||
}
|
}
|
||||||
|
|||||||
@ -329,7 +329,7 @@ func init() { // 插件主体
|
|||||||
}
|
}
|
||||||
|
|
||||||
func saveConfig(cfgFile string) (err error) {
|
func saveConfig(cfgFile string) (err error) {
|
||||||
if reader, err := os.OpenFile(cfgFile, os.O_CREATE, os.ModePerm); err == nil {
|
if reader, err := os.Create(cfgFile); err == nil {
|
||||||
err = json.NewEncoder(reader).Encode(&cfg)
|
err = json.NewEncoder(reader).Encode(&cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user