aboutsummaryrefslogtreecommitdiff
path: root/cogs/help.py
diff options
context:
space:
mode:
authorziro <palembani@gmail.com>2020-08-06 07:37:19 +0000
committerziro <palembani@gmail.com>2020-08-06 07:37:19 +0000
commit13447ea06137e9a2d856283037692837836e9b42 (patch)
treeeab42aa5e4e3615162a7581c8b44f4c962654ea3 /cogs/help.py
parentf797397950a1757a978962e912edae1a7263d3cb (diff)
downloadsteve-bot-13447ea06137e9a2d856283037692837836e9b42.tar
steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar.gz
steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar.bz2
steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar.lz
steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar.xz
steve-bot-13447ea06137e9a2d856283037692837836e9b42.tar.zst
steve-bot-13447ea06137e9a2d856283037692837836e9b42.zip
+ Steve Branch
Diffstat (limited to 'cogs/help.py')
-rw-r--r--cogs/help.py49
1 files changed, 0 insertions, 49 deletions
diff --git a/cogs/help.py b/cogs/help.py
deleted file mode 100644
index 7fb1b9f..0000000
--- a/cogs/help.py
+++ /dev/null
@@ -1,49 +0,0 @@
-from discord.ext import commands
-import discord
-import asyncio
-import json
-
-class Help(commands.Cog):
- def __init__(self, bot):
- self.bot = bot
-
- @commands.command(aliases=["commands"])
- async def help(self, ctx):
- """Show this message."""
- embed = discord.Embed(
- title = "Help",
- description = f"*` Bot prefixes are '>' and '$>' `*",
- colour = discord.Colour.green()
- )
-
- cmds = list(self.bot.commands)
- for cmd in cmds:
- if cmd.hidden is True:
- continue
- if cmd.help is None:
- _desc="No description."
- else:
- _desc=f"{cmd.help}"
- _cmd = " | ".join([str(cmd),*cmd.aliases])
- embed.add_field(name=f"{_cmd}", value=f"{_desc}", inline=False)
-
- await ctx.send(embed=embed)
-
- @commands.command(aliases=['customcommands', 'ccmds'])
- async def listcommands(self, ctx):
- """List all custom commands"""
- embed = discord.Embed(
- title = "Help",
- colour = discord.Colour.gold()
- )
- with open('custom_commands.json', 'r') as f:
- commands = json.load(f)
- ccmds = ", ".join([*commands])
- # await ctx.send(f"```List of custom commands: \n{ccmds}```")
- # output += f'{ccmds}```'
- embed.add_field(name="Custom Commands", value=f"{ccmds}", inline=False)
- await ctx.send(embed=embed)
-
-def setup(bot):
- bot.add_cog(Help(bot))
-