🎨 改进代码结构

This commit is contained in:
Yiwen-Chan
2021-03-18 18:13:50 +08:00
parent c7b86e767e
commit 0b9b507740
13 changed files with 543 additions and 813 deletions

View File

@@ -1,12 +1,9 @@
package utils
import (
"fmt"
"os"
"strconv"
"strings"
zero "github.com/wdvxdr1123/ZeroBot"
)
// Str2Int string --> int64
@@ -74,7 +71,3 @@ func Min(a, b int) int {
return a
}
}
func SendError(event zero.Event, err error) {
zero.Send(event, fmt.Sprintf("ERROR: %v", err))
}