Changed No Category to Misc., fixed source/about formatting

This commit is contained in:
Adriene Hutchins 2020-03-02 15:17:32 -05:00
parent 05dae3d019
commit 00065351f2
2 changed files with 3 additions and 2 deletions

View file

@ -16,6 +16,7 @@ class TaciHelpCommand(commands.MinimalHelpCommand):
super().__init__(**options) super().__init__(**options)
self.command_attrs['help'] = "Find more assistance on this bot." self.command_attrs['help'] = "Find more assistance on this bot."
self.subcommands_heading = "Subcommands" self.subcommands_heading = "Subcommands"
self.no_category = "Miscellaneous"
def get_opening_note(self): def get_opening_note(self):
"""Provides the header for all help commands.""" """Provides the header for all help commands."""
@ -124,7 +125,7 @@ class TaciHelpCommand(commands.MinimalHelpCommand):
self.paginator.add_line(note, empty=True) self.paginator.add_line(note, empty=True)
# Gets the category for each command in the bot # Gets the category for each command in the bot
no_category = '\u200b{0.no_category}'.format(self) no_category = f"\u200b{self.no_category}"
def get_category(command, *, no_category=no_category): def get_category(command, *, no_category=no_category):
cog = command.cog cog = command.cog
if cog is not None: if cog is not None: