diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-05-12 21:07:26 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-05-12 21:07:26 +0000 |
commit | c59e677819055e5322898063332368b575088552 (patch) | |
tree | d0ef240a5beff246e18294cf1b42c1fb7f29cf74 /cogs/help.py | |
parent | efa99965c4390bca433999c6ff5c188a84b2dbe5 (diff) | |
download | steve-bot-c59e677819055e5322898063332368b575088552.tar steve-bot-c59e677819055e5322898063332368b575088552.tar.gz steve-bot-c59e677819055e5322898063332368b575088552.tar.bz2 steve-bot-c59e677819055e5322898063332368b575088552.tar.lz steve-bot-c59e677819055e5322898063332368b575088552.tar.xz steve-bot-c59e677819055e5322898063332368b575088552.tar.zst steve-bot-c59e677819055e5322898063332368b575088552.zip |
Cleanup
Diffstat (limited to '')
-rwxr-xr-x | cogs/help.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/cogs/help.py b/cogs/help.py new file mode 100755 index 0000000..e508650 --- /dev/null +++ b/cogs/help.py @@ -0,0 +1,37 @@ +from discord.ext import commands +from random import randint + +class MyHelpCommand(commands.MinimalHelpCommand): + messages = ["...!", ".party()!", "<PLAYERNAME> IS YOU", + "10 years of Mining and Crafting!", + "12 herbs and spices!", + "12345 is a bad password!", + "150 bpm for 400000 minutes!", + "20 GOTO 10!", + "~~4815162342~~ 5 at most lines of code!", + "90210!", + "A skeleton popped out!", + "Absolutely fixed relatively broken coordinates", + "Absolutely no memes!", + "Afraid of the big, black bat!", + "Age of Wonders is better!", + "Ahhhhhh!"] + aliases_heading = "Other options: " + def get_command_signature(self, command): + return f'``{self.clean_prefix}{command.qualified_name} {command.signature}``' + def get_ending_note(self): + return self.messages[randint(0, len(self.messages)-1)] + +class Help(commands.Cog): + def __init__(self, bot): + self.bot = bot + self._original_help_command = bot.help_command + bot.help_command = MyHelpCommand() + bot.help_command.cog = self + + def cog_unload(self): + self.bot.help_command = self._original_help_command + + +def setup(bot): + bot.add_cog(Help(bot)) |