summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-08-15 23:16:43 +0800
committerGitHub <[email protected]>2020-08-15 23:16:43 +0800
commit669cf673c803bce4d0012dc8b33a9b381064e75a (patch)
treeae5a299f6b6c89f130a61b3a0ff4c5c6b02fa73c
parent6804c8bab3280c1c9bcb22c01204233c0766d1b8 (diff)
downloadATRI-669cf673c803bce4d0012dc8b33a9b381064e75a.tar.gz
ATRI-669cf673c803bce4d0012dc8b33a9b381064e75a.tar.bz2
ATRI-669cf673c803bce4d0012dc8b33a9b381064e75a.zip
Update BlackList.py
-rw-r--r--ATRI/plugins/BlackList.py4
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)