mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 15:44:57 +00:00
parent
df456e5d3e
commit
701763c63c
1 changed files with 2 additions and 10 deletions
|
@ -18,18 +18,10 @@ class Help(commands.Cog):
|
|||
title = 'Help Command'
|
||||
colour = 0x00FF00
|
||||
)
|
||||
cog_list = [cog_iter for cog_iter in self.bot.cogs.keys()]
|
||||
cog_list = [c for c in self.bot.cogs.keys()]
|
||||
page_count = math.ceil(len(cog_list) / 4)
|
||||
|
||||
try:
|
||||
page = int(page)
|
||||
except Exception as e:
|
||||
em = discord.Embed(
|
||||
title = 'Command error'
|
||||
colour = 0xFF0000
|
||||
description = e
|
||||
)
|
||||
|
||||
page = int(page)
|
||||
if page > page_count or page < 1:
|
||||
await ctx.send(f'Page number \'{page}\' not found.')
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue