aboutsummaryrefslogtreecommitdiff
path: root/cogs/help.py
blob: e5086507b79c31c48d80ed386fcdb73e3d571119 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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))
d>Thomas Voss1-1/+1 2020-08-10Harvested more user dataThomas Voss1-1/+2 2020-08-10Fixed typo and indentsThomas Voss1-3/+3 2020-08-08Temporary fix for pending commandAnInternetTroll1-0/+3 2020-08-07Update admin.pyThomas Voss1-1/+2 2020-08-07Update admin.pyThomas Voss1-1/+1 2020-08-07Update admin.pyAAP1-4/+4 2020-08-07Update admin.pyThomas Voss1-1/+1 2020-08-07Update admin.pyThomas Voss1-0/+5 2020-08-06Fixed day -99 bugAnInternetTroll1-303/+306 2020-08-06Check for ban command is fixedAnInternetTroll1-1/+1 2020-08-06Propper loop breakAnInternetTroll1-2/+2 2020-08-06+ Fixed trailing commaziro2-8/+3 2020-08-06+ Steve Branchziro20-342/+2453 2020-08-06+ Added listcommands to help.py (from mcbeDiscordBot)ziro1-0/+16 2020-08-06+ Show aliasses to help commandziro1-1/+1 2020-08-06+ Increases default clearchat limitziro1-1/+1 2020-08-06+ Tweaking cogsziro3-3/+3 2020-08-06+ Tweakingziro2-3/+3 2020-08-06+ Add more info to serverinfo commandziro1-2/+4 2020-08-06+ Tweaking help commandziro1-2/+1 2020-08-06+ Added desc for help cmd and serverinfo commandziro1-1/+20 2020-08-06+ Added description for help commandziro1-0/+1