Update parser.py
This commit is contained in:
parent
8a3ff387c5
commit
33a1ae5c40
1 changed files with 7 additions and 7 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue