Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
多羅狼 2023-04-05 19:08:13 +08:00 committed by GitHub
parent 8009d70e79
commit 979019703e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>']