Skip to main content

version python

nextcord-pretty-help

A Nextcord compatible form of stroupbslayen's discord-pretty-help project, which is an embed-based version of the built in help command for projects using discord.py.

The output is inspired by the DefaultHelpCommand that discord.py uses, but is revised to use Discord embeds instead of plain text, and additional sorting on paginated sections that can be "scrolled" through using reactions.

Installation

pip install nextcord-pretty-help

Usage

Example of how to use it:

from nextcord.ext import commands
from pretty_help import PrettyHelp

client = commands.Bot(command_prefix="!", help_command=PrettyHelp())

Added Optional Args

  • color - Set the default embed color
  • ending_note - Set the footer of the embed. Ending notes are fed a commands.Context (ctx) and a PrettyHelp (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 a pretty_help.PrettyMenu() instance. Default is pretty_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 alphabetically
  • show_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 30s
  • delete_after_timeout - Delete the message after active_time instead of removing reactions. Default False
  • page_left - The emoji to use to page left
  • page_right - The emoji to use to page right
  • remove - 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 nextcord.ext import commands
from pretty_help 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 {ctx.clean_prefix}{ctx.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.

example

Changelog

[1.3.3]

  • Added delete_after_timeout kwarg so messages are deleted after the time limit instead of just removing emojis
  • Added command cooldown information to pages

Notes:

  • Nextcord must already be installed to use this
  • manage-messages permission is recommended so reactions can be removed automatically

Metadata

Release files for nextcord-pretty-help 1.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nextcord-pretty-help 1.3.3
File Size Uploaded Provenance Actions
nextcord-pretty-help-1.3.3.tar.gz 9.6 kB Without provenance Details for nextcord-pretty-help-1.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nextcord-pretty-help 1.3.3
File Interpreter ABI Platform Actions
nextcord_pretty_help-1.3.3-py3-none-any.whl Python 3 none any Details for nextcord_pretty_help-1.3.3-py3-none-any.whl

Total release size: 19.0 kB

Release files / nextcord-pretty-help-1.3.3.tar.gz

Download URL nextcord-pretty-help-1.3.3.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c8ddad38274d5639bf9543e1562c01f7375975c4c881e26b9702601831409b15
BLAKE2b-256 checksum
How to use checksums
37e5904956a6e3bf90b3dda3fe54eb8a5fcdf4bceaef9cc24c956d2e7e826b2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / nextcord_pretty_help-1.3.3-py3-none-any.whl

Download URL nextcord_pretty_help-1.3.3-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a3c35935f952a541f243a92fbcda174768eb32c28f6f779496b8e5bb0390157
BLAKE2b-256 checksum
How to use checksums
f8385c6bbc6331bfc5db40c9eea0f2512ee52b243c2639dc65d081035a542398
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for nextcord-pretty-help 1.3.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.

Release history Release notifications | RSS feed

This release

1.3.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page