From d66dd9b7fab767fed78e6e65b6298fa426358edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 25 Mar 2023 21:56:43 +0800 Subject: [PATCH] fix wifw --- plugin/wife/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/wife/main.go b/plugin/wife/main.go index f105ae86..1658f876 100644 --- a/plugin/wife/main.go +++ b/plugin/wife/main.go @@ -3,6 +3,7 @@ package wife import ( "encoding/json" + "os" "strings" fcext "github.com/FloatTech/floatbox/ctxext" @@ -21,6 +22,7 @@ func init() { Brief: "从老婆库抽每日老婆", PublicDataFolder: "Wife", }).ApplySingle(ctxext.DefaultSingle) + _ = os.MkdirAll(engine.DataFolder()+"wives", 0755) cards := []string{} engine.OnFullMatch("抽老婆", fcext.DoOnceOnSuccess( func(ctx *zero.Ctx) bool {