Added help info
This commit is contained in:
parent
643a7776df
commit
641cdb7150
@ -61,6 +61,7 @@ class Geeksbot(commands.Bot):
|
||||
self.default_prefix = 'g~'
|
||||
self.voice_chans = {}
|
||||
self.spam_list = {}
|
||||
self.owner_id = 351794468870946827
|
||||
self.gcs_service = build('customsearch', 'v1', developerKey=self.bot_secrets['google_search_key'])
|
||||
self.tpe = futures.ThreadPoolExecutor()
|
||||
self.geo_api = '2d4e419c2be04c8abe91cb5dd1548c72'
|
||||
|
||||
@ -702,12 +702,25 @@ class Utils:
|
||||
@commands.command(name='help', aliases=['h'])
|
||||
@commands.cooldown(1, 5, commands.BucketType.user)
|
||||
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',
|
||||
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}')
|
||||
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 command in self.bot.get_cog_commands(cog):
|
||||
if not command.hidden:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user