Added help info

release-1.0.0
DustyP 8 years ago
parent 643a7776df
commit 641cdb7150

@ -61,6 +61,7 @@ class Geeksbot(commands.Bot):
self.default_prefix = 'g~' self.default_prefix = 'g~'
self.voice_chans = {} self.voice_chans = {}
self.spam_list = {} self.spam_list = {}
self.owner_id = 351794468870946827
self.gcs_service = build('customsearch', 'v1', developerKey=self.bot_secrets['google_search_key']) self.gcs_service = build('customsearch', 'v1', developerKey=self.bot_secrets['google_search_key'])
self.tpe = futures.ThreadPoolExecutor() self.tpe = futures.ThreadPoolExecutor()
self.geo_api = '2d4e419c2be04c8abe91cb5dd1548c72' self.geo_api = '2d4e419c2be04c8abe91cb5dd1548c72'

@ -702,12 +702,25 @@ class Utils:
@commands.command(name='help', aliases=['h']) @commands.command(name='help', aliases=['h'])
@commands.cooldown(1, 5, commands.BucketType.user) @commands.cooldown(1, 5, commands.BucketType.user)
async def custom_help(self, ctx, command: str=None): async def custom_help(self, ctx, command: str=None):
pag = utils.Paginator(self.bot, embed=True, max_line_length=44) pag = utils.Paginator(self.bot, embed=True, max_line_length=50)
prefixes = await self.bot.get_custom_prefix()
if isinstance(prefixes, list):
prefixes = ', '.join(prefixes)
owner = await self.bot.get_user_info(self.bot.owner_id)
pag.set_embed_meta(title='Geeksbot Help', pag.set_embed_meta(title='Geeksbot Help',
description=f'{self.bot.description}', description=f'{self.bot.description}\n'
f'For more information about a command please run\n'
f'{prefixes.split(",")[0]}help [group] <command>',
thumbnail=f'{ctx.guild.me.avatar_url}') thumbnail=f'{ctx.guild.me.avatar_url}')
if command is None: if command is None:
pag.add('\uFFF6My new help\nTest message\n\uFFF7\n\uFFF8') pag.add(f"Welcome to Geeksbot's help command.\n"
f"Below you will find some basic information about me.\n\n"
f"Version: {self.bot.__version__}\n\n"
f"Owner: Dusty.P\n"
f" Username: {owner.name}#{owner.discriminator}\n"
f" ID: {owner.id}\n\n"
f"Prefixes available for this guild:\n"
f" {prefixes}\n\uFFF7\n\uFFF8")
for cog in sorted(self.bot.cogs): for cog in sorted(self.bot.cogs):
for command in self.bot.get_cog_commands(cog): for command in self.bot.get_cog_commands(cog):
if not command.hidden: if not command.hidden:

Loading…
Cancel
Save