diff options
author | Kyomotoi <[email protected]> | 2020-08-12 22:38:05 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-08-12 22:38:05 +0800 |
commit | de591789f5ab68458d060d6ea96bf8dcbbe4df8c (patch) | |
tree | 144f083ad7a807b08fc4e269f966478e7e1ed33e /ATRI/plugins/other.py | |
parent | b11b204043451334c33d827b776f230b6c8e84ce (diff) | |
download | ATRI-de591789f5ab68458d060d6ea96bf8dcbbe4df8c.tar.gz ATRI-de591789f5ab68458d060d6ea96bf8dcbbe4df8c.tar.bz2 ATRI-de591789f5ab68458d060d6ea96bf8dcbbe4df8c.zip |
[Fix] f**k some ntr
Diffstat (limited to 'ATRI/plugins/other.py')
-rw-r--r-- | ATRI/plugins/other.py | 10 |
1 files changed, 5 insertions, 5 deletions
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) |