From 9c91cc1c7f39a7178e753d5f32a707db0ae19790 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sun, 13 Sep 2020 16:36:05 +0800 Subject: [Update] --- ATRI/plugins/GetChatMSG.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ATRI/plugins/GetChatMSG.py') diff --git a/ATRI/plugins/GetChatMSG.py b/ATRI/plugins/GetChatMSG.py index 05d47b8..9b4adb8 100644 --- a/ATRI/plugins/GetChatMSG.py +++ b/ATRI/plugins/GetChatMSG.py @@ -27,4 +27,7 @@ async def _(ctx): f.write(json.dumps(data)) f.close() except: - os.mkdir(Path('.') / 'ATRI' / 'data' / 'groupData' / f'{group}') \ No newline at end of file + os.mkdir(Path('.') / 'ATRI' / 'data' / 'groupData' / f'{group}') + with open(Path('.') / 'ATRI' / 'data' / 'groupData' / f'{group}' / 'msgData.json', 'w') as f: + f.write(json.dumps(data)) + f.close() \ No newline at end of file -- cgit v1.2.3