1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-09 20:40:27 +08:00

fix: create db error

This commit is contained in:
源文雨
2022-07-06 15:01:32 +08:00
parent 53afba01b6
commit 050b5e5d8a
3 changed files with 6 additions and 12 deletions

View File

@@ -2,7 +2,6 @@ package rei
import (
"fmt"
"os"
"strconv"
"strings"
"unsafe"
@@ -34,11 +33,6 @@ func Lookup(service string) (*ctrl.Control[*Ctx], bool) {
func init() {
process.NewCustomOnce(&m).Do(func() {
err := os.MkdirAll("data/control", 0755)
if err != nil {
panic(err)
}
OnMessageCommandGroup([]string{
"响应", "response", "沉默", "silence",
}, UserOrGrpAdmin).SetBlock(true).secondPriority().Handle(func(ctx *Ctx) {