Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/example/help_doc_test.py

14 lines
737 B
Python
Raw Normal View History

2023-02-05 14:33:33 +00:00
from core.builtins import command_prefix
2022-07-31 08:27:58 +00:00
from core.parser.command import CommandParser
2021-07-31 12:38:29 +00:00
c = CommandParser(('~wiki <PageName> {搜索一个Wiki页面}',
2021-08-07 07:56:48 +00:00
'~wiki random {从Wiki获取随机页面}',
'~wiki set <WikiUrl> {设置起始查询Wiki}',
'~wiki iw (add|set) <Interwiki> <WikiUrl> {添加自定义Interwiki}',
'~wiki iw (del|delete|remove|rm) <Interwiki> {删除自定义Interwiki}',
'~wiki headers add <Headers> {添加自定义headers}',
'~wiki headers delete <HeaderKey> {删除一个headers}',
'~wiki headers reset {重置headers}'), command_prefixes=command_prefix)
2021-07-31 12:38:29 +00:00
2021-08-07 07:56:48 +00:00
print(c.parse('~wiki iw'))