Skip to main content

pack_name descr

Project description

nonebot-plugin-autohelp

testsnonebot2cqhttppythonCode style: blackLicense: MITPyPI version

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

nonebot_plugin_autohelp-0.1.0.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_autohelp-0.1.0-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page