summaryrefslogtreecommitdiff
path: root/ATRI/plugins/GetChatMSG.py
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins/GetChatMSG.py')
-rw-r--r--ATRI/plugins/GetChatMSG.py5
1 files changed, 4 insertions, 1 deletions
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