import discord import datetime from discord.ext import commands class help(commands.Cog): def __init__(self,client): self.client = client #============================= # # # HELP COMMAND # # # #============================= @commands.command() async def help(ctx, self, input: str=None, case_insensitive=True): if input is None: embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch Plugins Commands', icon_url=f"{client.user.avatar_url}") embed.add_field(name='**Moderator**', value='`.help moderator`', inline=True) embed.add_field(name='**Misc**', value='`.help misc`', inline=True) embed.add_field(name='**Music** __**NEW**__', value='`.help music`', inline=True) embed.add_field(name='**Memes** __**NEW**__', value='`.help meme`', inline=True) embed.add_field(name='**Levels** __**NEW**__', value='`.help levels`', inline=True) embed.set_thumbnail(url=f"https://imgur.com/Pe9nY2r.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "music": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Music', icon_url=f"{client.user.avatar_url}") embed.add_field(name='**Music**', value='The client leaves the voice channel after 2 mins of no song playing automaticly\n‎', inline=False) embed.add_field(name='.join', value='Joins your voice chat', inline=False) embed.add_field(name='.play/.p (song name)', value='Plays song or youtube video', inline=False) embed.add_field(name='.pause', value='Pause the song', inline=False) embed.add_field(name='.resume', value='Continue paused song', inline=False) embed.add_field(name='.stop', value='Stops song', inline=False) embed.add_field(name='.leave', value='Leave voice channel', inline=False) embed.add_field(name='.skip/.next', value='Skips song', inline=False) embed.add_field(name='.queue', value='Shows Queue', inline=False) embed.add_field(name='‎\n__Extra Commands__', value='‎', inline=False) embed.add_field(name='.playlist (playlist url)', value='Plays a playlist', inline=False) embed.add_field(name='.song', value='Shows song currently playing', inline=False) embed.add_field(name='.volume/.vol (0-200)', value='(vol) Change song volume', inline=False) embed.add_field(name='.join (channel name)', value='Join a channel you are not in', inline=False) embed.add_field(name='.reset', value='Resets song', inline=False) embed.add_field(name='.repeat', value="Repeat the currently playing or turn off by using the command again", inline=False) embed.add_field(name='‎', value="__**NOTE: YOU NEED TO HAVE 'DJ' ROLE OR MANAGE CHANNELS PERMISSION TO MANAGE SONGS!**__‎", inline=False) embed.set_thumbnail(url=f"https://imgur.com/Pe9nY2r.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "misc": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Misc', icon_url=f"{client.user.avatar_url}") embed.add_field(name='**Miscellaneous**', value='⠀', inline=False) embed.add_field(name='.ping', value='Shows your ping relative to the client', inline=False) embed.add_field(name='.flip / .coinflip', value='Heads or Tails?!', inline=False) embed.add_field(name='.invite / add', value='Recieve a DM with client info', inline=False) embed.add_field(name='.stats', value='client Stats (Users and Servers)', inline=False) embed.add_field(name='.membercount / members', value='Amount of memebers in the server', inline=False) embed.add_field(name='.version', value='client Version!', inline=False) embed.add_field(name='.avatar (@user)', value='Sends users avatar picture', inline=False) embed.set_thumbnail(url=f"https://imgur.com/Pe9nY2r.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "mod": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Moderator Commands', icon_url=f"{client.user.avatar_url}") embed.add_field(name='**Moderator**', value='⠀', inline=False) embed.add_field(name='.changeprefix (newprefix)', value='Changes server prefix (Requires manage messages permission)', inline=False) embed.add_field(name='.unban (user)', value='Unbans user (ie. .unban example#0001) (Requires *Ban members* permission)', inline=False) embed.add_field(name='.ban (@user) (reason)', value='Bans user (Requires *Ban members* permission)', inline=False) embed.add_field(name='.clear (amount of messages)', value='Purges messages (Requires *manage messages* permission)', inline=False) embed.add_field(name='.kick (@user) (reason)', value='Kicks user (Requires *kick members* permission)', inline=False) embed.add_field(name='.mute (@user) (reason)', value='Mutes user (Requires *manage messages* permission) **do .help mute for setup**', inline=False) embed.add_field(name='.slowmode (time)', value='Set Slowmode (Requires *manage messages* permission)', inline=False) embed.add_field(name='Welcome messages', value='Please do .welcome to setup welcome messages', inline=False) embed.add_field(name='Logging', value='Please do .help logs', inline=False) embed.add_field(name='.config/setup', value='Set up a couple commands', inline=False) embed.set_thumbnail(url=f"https://imgur.com/tIaBmx8.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "moderator": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Moderator Commands', icon_url=f"{client.user.avatar_url}") embed.add_field(name='**Moderator**', value='⠀', inline=False) embed.add_field(name='.changeprefix (newprefix)', value='Changes server prefix (Requires *manage messages* permission)', inline=False) embed.add_field(name='.unban (user)', value='Unbans user (ie. .unban example#0001) (Requires *Ban members* permission)', inline=False) embed.add_field(name='.ban (@user) (reason)', value='Bans user (Requires *Ban members* permission)', inline=False) embed.add_field(name='.clear (amount of messages)', value='Purges messages (Requires *manage messages* permission)', inline=False) embed.add_field(name='.kick (@user) (reason)', value='Kicks user (Requires *kick members* permission)', inline=False) embed.add_field(name='.mute (@user) (reason)', value='Mutes user (Requires *manage messages* permission) **do .help mute for setup**', inline=False) embed.add_field(name='.slowmode (time)', value='Set Slowmode (Requires *manage messages* permission)', inline=False) embed.add_field(name='Welcome messages', value='Please do .welcome to setup welcome messages', inline=False) embed.add_field(name='Logging', value='Please do .help logs', inline=False) embed.add_field(name='.config/setup', value='Set up a couple commands', inline=False) embed.set_thumbnail(url=f"https://imgur.com/tIaBmx8.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "moderation": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Moderator Commands', icon_url=f"{client.user.avatar_url}") embed.add_field(name='**Moderator**', value='⠀', inline=False) embed.add_field(name='.changeprefix (newprefix)', value='Changes server prefix (Requires *manage messages* permission)', inline=False) embed.add_field(name='.unban (user)', value='Unbans user (ie. .unban example#0001) (Requires *Ban members* permission)', inline=False) embed.add_field(name='.ban (@user) (reason)', value='Bans user (Requires *Ban members* permission)', inline=False) embed.add_field(name='.clear (amount of messages)', value='Purges messages (Requires *manage messages* permission)', inline=False) embed.add_field(name='.kick (@user) (reason)', value='Kicks user (Requires *kick members* permission)', inline=False) embed.add_field(name='.mute (@user) (reason)', value='Mutes user (Requires *manage messages* permission) **do .help mute for setup**', inline=False) embed.add_field(name='.slowmode (time)', value='Set Slowmode (Requires *manage messages* permission)', inline=False) embed.add_field(name='Welcome messages', value='Please do .welcome to setup welcome messages', inline=False) embed.add_field(name='Logging', value='Please do .help logs', inline=False) embed.add_field(name='.config/setup', value='Set up a couple commands', inline=False) embed.set_thumbnail(url=f"https://imgur.com/tIaBmx8.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "mute": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Mute Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='Setup Mute command', value="To setup mute command; Make a role called 'Muted' (casesensitive), then remove the permission the send messages from the role. Also make sure that 'Muted' role can't talk in channels", inline=False) embed.set_thumbnail(url=f"https://imgur.com/qaMp8Lv.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "welcome": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Welcome Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='Setup Commands', value="Available Setup commands: \n\n.welcome channel <#channel>\n.welcome text \n\nPlease do __.welcome tags__ to see the tags/variables for welcome messages", inline=False) embed.set_thumbnail(url=f"https://imgur.com/oSuDPs8.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "config": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Config/Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='**Config**', value='⠀', inline=False) embed.add_field(name='.welcome', value='Setup welcome module', inline=False) embed.add_field(name='.help mute', value='Setup Mute module', inline=False) embed.add_field(name='.help logs', value='Setup Logging', inline=False) embed.add_field(name='.setup/config', value='Shows this message', inline=False) embed.set_thumbnail(url=f"https://imgur.com/VpdAWKr.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "setup": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Config/Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='**Config**', value='⠀', inline=False) embed.add_field(name='.welcome', value='Setup welcome module', inline=False) embed.add_field(name='.help mute', value='Setup Mute module', inline=False) embed.add_field(name='.help logs', value='Setup Logging', inline=False) embed.add_field(name='.setup/config', value='Shows this message', inline=False) embed.set_thumbnail(url=f"https://imgur.com/VpdAWKr.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "logs": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Logging Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='Setup Logging', value="To setup logging; Make a channel called 'arch-logs'", inline=False) embed.set_thumbnail(url=f"https://imgur.com/vpfdwh4.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) @commands.command() async def setup(ctx, self, input: str=None): if input is None: embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Config/Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='**Config**', value='⠀', inline=False) embed.add_field(name='.welcome', value='Setup welcome module', inline=False) embed.add_field(name='.help mute', value='Setup Mute module', inline=False) embed.add_field(name='.help logs', value='Setup Logging', inline=False) embed.add_field(name='.setup/config', value='Shows this message', inline=False) embed.set_thumbnail(url=f"https://imgur.com/VpdAWKr.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "welcome": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Welcome Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='Setup Commands', value="Available Setup commands: \n\n.welcome channel <#channel>\n.welcome text \n\nPlease do __.welcome tags__ to see the tags/variables for welcome messages", inline=False) embed.set_thumbnail(url=f"https://imgur.com/oSuDPs8.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "mute": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Mute Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='Setup Mute command', value="To setup mute command; Make a role called 'Muted' (casesensitive), then remove the permission the send messages from the role. Also make sure that 'Muted' role can't talk in channels", inline=False) embed.set_thumbnail(url=f"https://imgur.com/qaMp8Lv.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "logs": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Logging Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='Setup Logging', value="To setup logging; Make a channel called 'arch-logs'", inline=False) embed.set_thumbnail(url=f"https://imgur.com/vpfdwh4.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) @commands.command() async def config(ctx, self, input: str=None): if input is None: embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Config/Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='**Config**', value='⠀', inline=False) embed.add_field(name='.welcome', value='Setup welcome module', inline=False) embed.add_field(name='.help mute', value='Setup Mute module', inline=False) embed.add_field(name='.help logs', value='Setup Logging', inline=False) embed.add_field(name='.help setup/config', value='Shows this message', inline=False) embed.set_thumbnail(url=f"https://imgur.com/VpdAWKr.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "welcome": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Welcome Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='Setup Commands', value="Available Setup commands: \n\n.welcome channel <#channel>**\n.welcome text \n\nPlease do __.welcome tags__ to see the tags/variables for welcome messages", inline=False) embed.set_thumbnail(url=f"https://imgur.com/oSuDPs8.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "mute": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Mute Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='Setup Mute command', value="To setup mute command; Make a role called 'Muted' (casesensitive), then remove the permission the send messages from the role. Also make sure that 'Muted' role can't talk in channels", inline=False) embed.set_thumbnail(url=f"https://imgur.com/qaMp8Lv.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) elif input == "logs": embed = discord.Embed( colour = discord.Colour.blue() ) embed.set_author(name='Arch | Logging Setup', icon_url=f"{client.user.avatar_url}") embed.add_field(name='Setup Logging', value="To setup logging; Make a channel called 'arch-logs'", inline=False) embed.set_thumbnail(url=f"https://imgur.com/vpfdwh4.jpg") embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}") embed.timestamp = datetime.datetime.utcnow() await ctx.send(embed=embed) def setup(client): client.add_cog(help(client))