Skip to main content

An embed version of the built in help command for discord.py and probably other forks of 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.. An improved version of discord-pretty-help

Project description

tessa-pretty-help

A fork of discord-pretty-help , Revised by prakarsh17

An embed version of the built in help command for discord.py and probably other forks of discord.py ie Nextcord, Novus, pycord, etc.

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.

Installation

pip install tessa-pretty-help

Usage

Example of how to use it:

from discord.ext import commands
from pretty_help import PrettyHelp

bot = 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 discord.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 {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.

example

Changelog

[0.0.1.2]

  • Name updates and some stuff

Notes:

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

0.0.3 First nice stable version New emojis (which require bots to be in the tbd server (https://discord.gg/avpet3NjTE) Revised 0.0.1dev Little corrections 0.0.2dev New dev version 0.0.1.2 Name updates and some stuff

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

tessa-pretty-help-0.0.4.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tessa_pretty_help-0.0.4-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file tessa-pretty-help-0.0.4.tar.gz.

File metadata

  • Download URL: tessa-pretty-help-0.0.4.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for tessa-pretty-help-0.0.4.tar.gz
Algorithm Hash digest
SHA256 94f88043ad417739c2beef24d966e21dfc058b817c1940d8380b3b1050a95b92
MD5 8dfa16cfbb887bac7001c10e33c48ab4
BLAKE2b-256 66406f1b507afd8eb8a65d4a53d8563237367b50c6281373130de8ca16d30ee1

See more details on using hashes here.

File details

Details for the file tessa_pretty_help-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for tessa_pretty_help-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4c213a03ff998e4cca8607d34e754fabbd1163821b15018fb0abe320e1730b11
MD5 50188d3e6ac71048cec0df24080d0b99
BLAKE2b-256 e3715b3207bd0a68daa02a1f334080411508a8b7d682d5f5d003806704de9793

See more details on using hashes here.

Supported by

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