Archived
1
0
Fork 0

Update parser.py

This commit is contained in:
yzhh 2021-05-12 23:46:28 +08:00
parent 8a3ff387c5
commit 33a1ae5c40

View file

@ -41,11 +41,11 @@ async def parser(kwargs: dict):
if display.find('色图来') != -1: # 双倍快乐给我爬
await getsetu(kwargs)
return
try:
with eventlet.Timeout(90, False):
if display[0] in command_prefix: # 检查消息前缀
command = re.sub(r'^' + display[0], '', display)
command_first_word = command.split(' ')[0] # 切割消息
try:
with eventlet.Timeout(90, False):
if command_first_word in Modules['command']: # 检查触发命令是否在模块列表中
eventlet.monkey_patch()
if Group in kwargs: