Update __init__.py
This commit is contained in:
parent
8009d70e79
commit
979019703e
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@ from core.exceptions import NoReportException
|
|||
a = module('ask', developers=['Dianliang233'], desc='{ask.help.desc}', required_superuser=True)
|
||||
|
||||
|
||||
@a.command('<question> {{ask.help.ask}}')
|
||||
@a.regex(r'^(?:ask|问)[\::]? ?(.+?)[??]$', desc='{{ask.help}}')
|
||||
@a.command('<question> {{ask.help}}')
|
||||
@a.regex(r'^(?:ask|问)[\::]? ?(.+?)[??]$')
|
||||
async def _(msg: Bot.MessageSession):
|
||||
if hasattr(msg, 'parsed_msg'):
|
||||
question = msg.parsed_msg['<question>']
|
||||
|
|
Reference in a new issue