From de591789f5ab68458d060d6ea96bf8dcbbe4df8c Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Wed, 12 Aug 2020 22:38:05 +0800 Subject: [Fix] f**k some ntr --- ATRI/plugins/other.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ATRI/plugins/other.py') diff --git a/ATRI/plugins/other.py b/ATRI/plugins/other.py index be0ed50..9b96ed2 100644 --- a/ATRI/plugins/other.py +++ b/ATRI/plugins/other.py @@ -64,7 +64,7 @@ async def _(session: CommandSession): with open('ATRI/plugins/noobList/noobList.json', 'r') as f: data = json.load(f) - if data[f"{user}"] == str(user): + if str(user) in data.keys(): pass else: await session.send( @@ -92,7 +92,7 @@ async def _(session: CommandSession): with open('ATRI/plugins/noobList/noobList.json', 'r') as f: data = json.load(f) - if data[f"{user}"] == str(user): + if str(user) in data.keys(): pass else: await session.send( @@ -109,7 +109,7 @@ async def _(session: CommandSession): with open('ATRI/plugins/noobList/noobList.json', 'r') as f: data = json.load(f) - if data[f"{user}"] == str(user): + if str(user) in data.keys(): pass else: await session.send( @@ -126,7 +126,7 @@ async def _(session: CommandSession): with open('ATRI/plugins/noobList/noobList.json', 'r') as f: data = json.load(f) - if data[f"{user}"] == str(user): + if str(user) in data.keys(): pass else: await session.send( @@ -142,7 +142,7 @@ async def _(session: CommandSession): with open('ATRI/plugins/noobList/noobList.json', 'r') as f: data = json.load(f) - if data[f"{user}"] == str(user): + if str(user) in data.keys(): pass else: await session.send(MENU_REPO) -- cgit v1.2.3