pack_name descr
Project description
nonebot-plugin-autohelp
Show a summary of commands, aliases and usages for plugins loaded
Dependent adapter
cqhttp
Install it
pip install nonebot-plugin-autohelp
# or poetry add nonebot-plugin-autohelp
# pip install git+htts://github.com/ffreemt/nonebot-plugin-autohelp
# poetry add git+htts://github.com/ffreemt/nonebot-plugin-autohelp
# To upgrade
pip install nonebot-plugin-autohelp -U
# or poetry add nonebot-plugin-autohelp@latest
Use it
# bot.py
import nonebot
...
nonebot.init()
driver = nonebot.get_driver()
driver.register_adapter("cqhttp", CQHTTPBot)
nonebot.load_from_toml("pyproject.toml")
nonebot.load_plugin("nonebot_plugin_guess")
nonebot.load_plugin("nonebot_plugin_autohelp")
# plugin loaded after autohelp will not be taken care of by autohelp
nonebot.load_plugin("nonebot_plugin_fancy")
Sample session in a qq group
mu (μ)(41947782) 11:23:34 AM
help
mubot(2129462094) 11:23:36 AM
nickname:
command_start: /
command_sep: .
command: say
command: mecho
aliases: ping, ryt, 在不, p
command: news
aliases: xinwen, 新闻, 无聊
command: debug test: %s
aliases: 爬, fetch, crawl
command: guess
aliases: cai, 猜猜看, 猜
mu (μ)(41947782) 11:53:25 AM
help -h
mubot(2129462094) 11:53:27 AM
usage: help [-h] [-d] [params [params ...]]
positional arguments:
params list of parameters of type str (default: None)
optional arguments:
-h, --help show this help message and exit
-d, --details show __doc__ for each plugin (default: False)
---
mu (μ)(41947782) 11:23:34 AM
help --details
...(attach __doc___ for each plugin, ommitted)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_autohelp-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f694314af548a06c22e235cf61603f7e6d1effa9841ee0fc88325c33927d5d0 |
|
MD5 | 4329720e1fe648bb67f3b2bcd7b95261 |
|
BLAKE2b-256 | 0d8ab00a2a1d52c2bd5c792997c756859e5e37c59128798c0c287521ec591f6e |
Close
Hashes for nonebot_plugin_autohelp-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a57a59b27eb6489873a5e2b826ac18417fa1be578d4965246f7461e749bcd71c |
|
MD5 | 0871d07a5caa638d46df2294a1e85bbe |
|
BLAKE2b-256 | 2b81699f60250756d5ccb9583b8777aa839d11e28b0840743a2e9bfb29576a24 |