Deleted the ~help within HelpCommands.py

pull/2/head
sgoudham 5 years ago
parent 59293d6a25
commit aa806d4e4b

@ -11,220 +11,6 @@ class CustomHelp(commands.Cog):
def __init__(self, bot):
self.bot = bot
# ~help command allows the user to look at the list of commands
@command(aliases=["Help"])
async def help(self, ctx):
# Allowing the bot to dm the user
author = ctx.author
# Define guild icon, enso bot icon and enso bot name
guild_icon = ctx.guild.icon_url
enso_icon = self.bot.user.avatar_url
enso_name = self.bot.user.display_name
# Surround with try/except to catch any exceptions that may occur
try:
# Set up embed to list all the commands within the bot
embed = Embed(title="```(っ◔◡◔)っ Ensō Commands```",
colour=Colour(0xFF69B4),
timestamp=datetime.datetime.utcnow())
embed.set_thumbnail(url=guild_icon)
embed.set_author(name=enso_name,
icon_url=enso_icon)
embed.add_field(
name="\u200b",
value="```css" +
"\n ( ͡°ω ͡°) Fun Commands ( ͡°ω ͡°)" +
"```",
inline=False)
embed.add_field(
name="\u200b",
value="**➳ ~attack [person]**" +
"\n Allows the user to throw an insult to a person in the server" +
"\n *(Perms: Co-Owner)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~compliment [person]**" +
"\n Allows the user to compliment a person in the server" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~8ball [text]**" +
"\n Allows the user to ask a question and 8ball will give a custom response" +
"\n *(Perms: everyone)*",
inline=True)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~owo [text]**" +
"\n Converts the sentence typed into 'owo' text " +
"\n *(Perms: everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~lemon [person]**" +
"\n Allows the user to give a lemon to a person in the server" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~slap [person]**" +
"\n Allows the user to slap a person in the server" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~kill [person]**" +
"\n Allows the user to kill a person in the server" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~pat [person]**" +
"\n Allows the user to pat a person in the server" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~kiss [person]**" +
"\n Allows the user to kiss a person in the server" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~cuddle [person]**" +
"\n Allows the user to cuddle a person in the server" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~flip**" +
"\n Allows the user to 'throw a coin' and get a response with a 50/50 chance" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~doggo**" +
"\n Allows the user to look at an image of a doggo (Over 20k Images Available" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="```css" +
"\n ( ͡°ω ͡°) Waifus/Husbando Commands ( ͡°ω ͡°)" +
"```",
inline=False)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~w [waifu]**" +
"\n Allows for a randomly generated image of a Waifu to be shown" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~h [husbando]**" +
"\n Allows for a randomly generated image of a Husbando to be shown" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~w list**" +
"\n Returns a list of Waifu's that are in the bot " +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~h list**" +
"\n Returns a list of Husbando's that are in the bot " +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~enso [person]**" +
"\n Allows for a randomly generated image of the member specified" +
"\n (Using ~enso by itself shall generate a random image of a person within all the server)" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~enso list**" +
"\n Returns a list of the people's images currently in the bot" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="```css" +
"\n ( ͡°ω ͡°) Misc Commands ( ͡°ω ͡°)" +
"```",
inline=False)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~ping**" +
"\n Returns Pong! Along With The Latency in ms" +
"\n *(Perms: Co-Owner)*",
inline=True)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~rolemenu**"
"\n Allows for the users to get self ping-able roles" +
"\n *(Perms: Co-Owner)*",
inline=True)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~dm [person]**" +
"\n Allows Hammmy to dm anyone in the server through Enso~Chan!" +
"\n *(Perms: Co-Owner)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~userinfo**" +
"\n Returns information about the user (Name, Roles, Joined Date, Created Date, etc)" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~serverinfo**" +
"\n Returns information about the server (Owner, Members, Region, Bots etc etc)" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~rules**" +
"\n Returns the entire ruleset for the server" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b",
value="**➳ ~roles**" +
"\n Shows you how the leveling and xp system works, as well as displaying the order of leveled roles" +
"\n *(Perms: Everyone)*",
inline=True)
embed.add_field(
name="\u200b\u200b",
value="**➳ ~remindme [time] [text]**" +
"\n Allows the user to get Enso~Chan to remind them in dms of anything that they want" +
"\n *(Perms: Everyone)*",
inline=True)
# Dm the user the embedded message
await author.send(embed=embed)
# Send the helpDm() message to the channel that the user is in
message = await ctx.send(helpDm())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(10)
# Delete the message
await message.delete()
except Exception as e:
print(e)
# ~rules command allows for an embed message about the leveled roles and xp system
@command(aliases=["Rules", "rule", "Rule"])
async def rules(self, ctx):

Loading…
Cancel
Save