diff --git a/aff.py b/aff.py index dc72fc0..055cade 100644 --- a/aff.py +++ b/aff.py @@ -10,7 +10,7 @@ from pagermaid.listener import listener async def aff(context): if not context.parameter: #发送aff信息 try: - with open("plugins/AffExtra/aff.txt", "r") as f: + with open("plugins/AffExtra/aff.txt", "r", encoding="UTF-8") as f: msg = f.read() except: msg = "" @@ -31,7 +31,7 @@ async def aff(context): msg = reply.message if not exists("plugins/AffExtra"): mkdir("plugins/AffExtra") - with open("plugins/AffExtra/aff.txt", "w") as f: + with open("plugins/AffExtra/aff.txt", "w", encoding="UTF-8") as f: f.write(msg) await context.edit("好耶 ! Aff信息保存成功。") sleep(3) diff --git a/list.json b/list.json index 16ddb27..cd9a2d8 100644 --- a/list.json +++ b/list.json @@ -312,7 +312,7 @@ }, { "name": "aff", - "version": "1.1", + "version": "1.2", "section": "chat", "maintainer": "TNTcraftHIM", "size": "2.0 kb",