diff options
Diffstat (limited to 'ATRI')
-rw-r--r-- | ATRI/plugins/BlackList.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/BlackList.py b/ATRI/plugins/BlackList.py index d1a50d3..5a470ed 100644 --- a/ATRI/plugins/BlackList.py +++ b/ATRI/plugins/BlackList.py @@ -11,7 +11,7 @@ master = config.MASTER() @on_command('add_noobList', aliases = ['屏蔽', '移除'], only_to_me = False) async def _(session: CommandSession): - if session.event.user_id in master: + if session.event.user_id == master: msg = session.event.raw_message.split(' ', 1) b_type = msg[0] user = msg[1] @@ -49,4 +49,4 @@ async def _(session: CommandSession): 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(msg) |