pycord-prettyhelp
An embed version of the built in help command for discord.py
Inspired by the DefaultHelpCommand that discord.py uses, but revised for embeds and additional sorting on individual pages that can be "scrolled" through with reactions.
Made this fork because the original library was built for discord.py which is no longer maintained.
Installation
pip install pycord-prettyhelp
Usage
Example of how to use it:
from discord.ext import commands
from discord.ext.prettyhelp import PrettyHelp
bot = commands.Bot(
command_prefix="!", help_command=PrettyHelp()
)
Added Optional Args
color- Set the default embed colorending_note- Set the footer of the embed. Ending notes are fed acommands.Context(ctx) and aPrettyHelp(help) instance for more advanced customization.index_title- Set the index page name default is "Categories"menu- set a custom menu for navigating pages. Uses apretty_help.PrettyMenu()instance. Default ispretty_help.DefaultMenu()no_category- Set the name of the page with commands not part of a category. Default is "No Category"sort_commands- Sort commands and categories alphabeticallyshow_index- Show the index page or not
pretty_help.DefaultHelp args
active_time- Set the time (in seconds) that the message will be active. Default is 30spage_left- The emoji to use to page leftpage_right- The emoji to use to page rightremove- The emoji to use to remove the help message
By default, the help will just pick a random color on every invoke. You can change this using the color argument:
from discord.ext import commands
from discord.ext.prettyhelp import DefaultMenu, PrettyHelp
# ":discord:743511195197374563" is a custom discord emoji format. Adjust to match your own custom emoji.
menu = DefaultMenu(
page_left="\U0001F44D",
page_right="👎",
remove=":discord:743511195197374563",
active_time=5,
)
# Custom ending note
ending_note = (
"The ending note from {ctx.bot.user.name}"
"\nFor command {help.clean_prefix}{help.invoked_with}"
)
bot = commands.Bot(command_prefix="!")
bot.help_command = PrettyHelp(
menu=menu, ending_note=ending_note
)
The basic help command will break commands up by cogs. Each cog will be a different page. Those pages can be navigated with
the arrow embeds. The message is unresponsive after 30s of no activity, it'll remove the reactions to let you know.
Metadata
Release files for pycord-prettyhelp 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycord-prettyhelp-0.2.3.tar.gz | 10.3 kB | Without provenance | Details for pycord-prettyhelp-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycord_prettyhelp-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for pycord_prettyhelp-0.2.3-py3-none-any.whl |
Total release size: 20.3 kB
Release files / pycord-prettyhelp-0.2.3.tar.gz
| Download URL | pycord-prettyhelp-0.2.3.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4f3f025504c451ab8580d09678cd8409c72471d03ea74d4077864b45c2e0bd1
|
|
BLAKE2b-256 checksum How to use checksums |
ef698a45bc31c755b875a317707b9f33f86e3d771d22ec44dab1bf11560f1bd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Release files / pycord_prettyhelp-0.2.3-py3-none-any.whl
| Download URL | pycord_prettyhelp-0.2.3-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ec4616da00fe15dab2cd0fe3d39caa839c4e5dcf4031191294dda0c9bbcfcdb
|
|
BLAKE2b-256 checksum How to use checksums |
abb8ae3f7f509f73c8fd127707904043c352018dc24167c39c10d9f57093d597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
|
Security for pycord-prettyhelp 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.