From 88a4105e7cbfbcd7952b3d47be3279f021f7ad6f Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Thu, 9 Jun 2022 22:32:12 +0800 Subject: =?UTF-8?q?=F0=9F=92=A9=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/wife/data_source.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ATRI/plugins/wife') diff --git a/ATRI/plugins/wife/data_source.py b/ATRI/plugins/wife/data_source.py index 9ba1e93..7074f93 100644 --- a/ATRI/plugins/wife/data_source.py +++ b/ATRI/plugins/wife/data_source.py @@ -1,4 +1,3 @@ -import os import json from random import choice from pathlib import Path @@ -9,7 +8,7 @@ from ATRI.rule import is_in_service WIFE_DIR = Path(".") / "data" / "database" / "wife" -os.makedirs(WIFE_DIR, exist_ok=True) +WIFE_DIR.mkdir(parents=True, exist_ok=True) class Wife(Service): @@ -38,7 +37,7 @@ class Wife(Service): ), ] ) - result = MessageSegment.at(user_id) + content + result = MessageSegment.at(user_id) + content # type: ignore return result @staticmethod -- cgit v1.2.3