diff options
author | Kyomotoi <1172294279@qq.com> | 2020-08-27 16:02:00 +0800 |
---|---|---|
committer | Kyomotoi <1172294279@qq.com> | 2020-08-27 16:02:00 +0800 |
commit | c0f2ab9574a9e1b2a03f978f3625f77f76ca645f (patch) | |
tree | e9684916d3ace420679a330671e3abc5dd423d7a /ATRI/plugins/Chat0.py | |
parent | 921eb9a7b2040a46de39b3184a8a3fb6ae7f89a7 (diff) | |
download | ATRI-c0f2ab9574a9e1b2a03f978f3625f77f76ca645f.tar.gz ATRI-c0f2ab9574a9e1b2a03f978f3625f77f76ca645f.tar.bz2 ATRI-c0f2ab9574a9e1b2a03f978f3625f77f76ca645f.zip |
[Fix]
Diffstat (limited to 'ATRI/plugins/Chat0.py')
-rw-r--r-- | ATRI/plugins/Chat0.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ATRI/plugins/Chat0.py b/ATRI/plugins/Chat0.py index c3be56b..36e5865 100644 --- a/ATRI/plugins/Chat0.py +++ b/ATRI/plugins/Chat0.py @@ -530,7 +530,7 @@ async def _(session: CommandSession): if 0 <= now_time() < 5.5: pass else: - if datetime.date.today().strftime('%y%m%d') == 200828: + if datetime.date.today().strftime('%y%m%d') == '200828': res = randint(1,3) if res == 1: msg = choice( @@ -657,10 +657,7 @@ async def _(session: CommandSession): bL = {} pattern = r"[nNηиɴИ][tT][rR]|[牛🐂]头人" if re.findall(pattern, msg): - await session.send('你妈的,牛头人,' + request_api(KC_URL)) noobList1.append(user) - print(noobList1) - print(countX(noobList1, user)) if countX(noobList1, user) == 5: if user == master: await session.send('是主人的话...那算了...呜呜\n即使到达了ATRI的最低忍耐限度......') @@ -686,4 +683,7 @@ async def _(session: CommandSession): trigger = trigger, args = (session.event.user_id,), misfire_grace_time = 60, - )
\ No newline at end of file + ) + + else: + await session.send('你妈的,牛头人,' + request_api(KC_URL))
\ No newline at end of file |