diff options
Diffstat (limited to 'ATRI/plugins/BlackList.py')
-rw-r--r-- | ATRI/plugins/BlackList.py | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/ATRI/plugins/BlackList.py b/ATRI/plugins/BlackList.py index ec851b5..dd81e6b 100644 --- a/ATRI/plugins/BlackList.py +++ b/ATRI/plugins/BlackList.py @@ -67,45 +67,4 @@ async def _(session: CommandSession): f = open(file1, 'w') f.write(json.dumps(bL)) f.close() - await session.send(f'将群[{u}]移出黑名单成功~!') - - -@on_command('look_noobList', aliases = ['查看黑名单'], only_to_me = False) -async def _(session: CommandSession): - start = time.perf_counter() - with open(file, 'r') as f: - data = json.load(f) - with open(file1, 'r') as f: - data0 = json.load(f) - - msg = f'被ATRI列入黑名单有以下列表:\n' - try: - msg1 = f'=====[用户]=====\n' - msg += msg1 - for i in data.keys(): - msg0 = f'{i}\n' - msg += msg0 - except: - end = time.perf_counter() - msg0 = f"==============\nDone time: {round(end - start, 3)}s" - msg += msg0 - await session.send(msg) - return - - try: - msg1 = f'======[群]======\n' - msg += msg1 - for i in data0.keys(): - msg0 = f'{i}\n' - msg += msg0 - except: - end = time.perf_counter() - msg0 = f"==============\nDone time: {round(end - start, 3)}s" - msg += msg0 - await session.send(msg) - return - - end = time.perf_counter() - msg0 = f"==============\nDone time: {round(end - start, 3)}s" - msg += msg0 - await session.send(msg)
\ No newline at end of file + await session.send(f'将群[{u}]移出黑名单成功~!')
\ No newline at end of file |