Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.90 KB | None | 0 0
  1. import discord
  2. from discord.ext import commands
  3. from datetime import datetime
  4. import datetime
  5. import time
  6. import os
  7. import csv
  8. import inspect
  9.  
  10. with open('Config.csv', 'r') as f:
  11.     ConfigReader = csv.reader(f)
  12.     Config = list(ConfigReader)
  13. footertext = Config[2][1]
  14. disabledcommandslist = Config[4]
  15. magic8ballresponces = Config[5]
  16.  
  17. def user_is_owner(ctx):
  18.     return str(ctx.author.id) in Config[3][1]
  19.  
  20. class helpcommand(commands.Cog):
  21.  
  22.     def __init__(self, bot):
  23.         self.bot = bot
  24.  
  25.  
  26.     @commands.command(aliases=["HELP","Help"])
  27.     async def help(self, ctx, cog=None):
  28.         if cog is None:
  29.             embed = discord.Embed(title="Use `wu!help *cog*` to find out more about them!",description="Windows Help")
  30.             embed.add_field(name="Cogs", value="Utility",inline=False)
  31.             embed.add_field(name="\uFEFF", value="Fun",inline=False)
  32.             embed.add_field(name="\uFEFF", value="Music",inline=False)
  33.             embed.add_field(name="\uFEFF", value="Shop",inline=False)
  34.             embed.add_field(name="No Category", value="Help\nSuggestions",inline=False)
  35.             embed.set_footer(text=f'{ctx.message.author.name}', icon_url=ctx.message.author.avatar_url)
  36.             embed.timestamp = datetime.datetime.now()
  37.             await ctx.send(embed=embed)
  38.         elif cog is 'Music':
  39.             embed = discord.Embed(Title="Music", value="Music Commands")
  40.             embed.add_field(name="connect", value="Connect to voice.", inline=False)
  41.             embed.add_field(name="now_playing", value="Display information about the currently playing song.", inline=False)
  42.             embed.add_field(name="pause", value="Pause the currently playing song.", inline=False)
  43.             embed.add_field(name="play", value="Request a song and add it to the queue.", inline=False)
  44.             embed.add_field(name="queue", value="Retrieve a basic queue of upcoming songs.", inline=False)
  45.             embed.add_field(name="resume", value="Resume the currently paused song.", inline=False)
  46.             embed.add_field(name="skip", value="Skip the song.")
  47.             embed.add_field(name="stop", value="Stop the currently playing song and destroy the player.", inline=False)
  48.             embed.add_field(name="volume", value="Change the player volume.", inline=False)
  49.             embed.set_footer(text=f'{ctx.message.author.name}', icon_url=ctx.message.author.avatar_url)
  50.             embed.timestamp = datetime.datetime.now()
  51.             await ctx.send(embed=embed)
  52.         elif cog is 'Fun':
  53.             embed = discord.Embed(Title="Fun", value="Fun Commands!")
  54.             embed.add_field(name="emojis", value="Turns Text Into Emojis", inline=False)
  55.             embed.add_field(name="CMD", value="To Use This Command Type wu!cmd **windowsversion** **command**", inline=False)
  56.             embed.add_field(name="hack", value="Hacks A User Fun Command", inline=False)
  57.             embed.add_field(name="reverse", value="Reverses Text", inline=False)
  58.             embed.add_field(name="cool", value="Is A User Cool?", inline=False)
  59.             embed.add_field(name="echo", value="Echos Text", inline=False)
  60.             embed.add_field(name="format", value="Format A Drive", inline=False)
  61.             embed.set_footer(text=f'{ctx.message.author.name}', icon_url=ctx.message.author.avatar_url)
  62.             embed.timestamp = datetime.datetime.now()
  63.             await ctx.send(embed=embed)    
  64.         elif cog is 'Utility':
  65.             embed = discord.Embed(Title="Utility", value="Utility Commands!")
  66.             embed.add_field(name="8ball", value="Magic8Ball Command", inline=False)
  67.             embed.add_field(name="askmestuff", value="Answers A Yes/No Question", inline=False)
  68.             embed.add_field(name="botinfo", value="Info About The Bot", inline=False)
  69.             embed.add_field(name="helpme", value="Use this command for any issues with the bot", inline=False)
  70.             embed.add_field(name="invite", value="Gets The Bot Invite Link", inline=False)
  71.             embed.add_field(name="membericon", value="Gets A Profile Picture Link And Sends It In Discord", inline=False)
  72.             embed.add_field(name="ping", value="Pong!", inline=False)
  73.             embed.add_field(name="serverinfo", value="Get information about the server the command is executed in", inline=False)
  74.             embed.add_field(name="uptime", value="How Long Has The Bot Been Online For?", inline=False)
  75.             embed.add_field(name="userinfo", value="Recieve information about the mentioned user", inline=False)
  76.             embed.add_field(name="perms", value="Perms That A User Has", inline=False)
  77.             embed.add_field(name="joined", value="Says The Time Someone Joined", inline=False)
  78.             embed.set_footer(text=f'{ctx.message.author.name}', icon_url=ctx.message.author.avatar_url)
  79.             embed.timestamp = datetime.datetime.now()
  80.             await ctx.send(embed=embed)    
  81.         elif cog is 'Mod':
  82.             embed = discord.Embed(Title="Mod", value="Mod Commands!")
  83.             embed.add_field(name="clear5", value="Clears 5 Messages", inline=False)
  84.             embed.add_field(name="clear10", value="Clears 10 Messages", inline=False)
  85.             embed.add_field(name="ban", value="Bans A Member", inline=False)
  86.             embed.add_field(name="kick", value="Kicks A Member", inline=False)
  87.             embed.add_field(name="warn", value="Warns A Member")
  88.             embed.set_footer(text=f'{ctx.message.author.name}', icon_url=ctx.message.author.avatar_url)
  89.             embed.timestamp = datetime.datetime.now()
  90.             await ctx.send(embed=embed)    
  91.         else:
  92.             embed = discord.Embed(description="Thats Not A Vaild Cog")
  93.             embed.set_footer(text=f'{ctx.message.author.name}', icon_url=ctx.message.author.avatar_url)
  94.             embed.timestamp = datetime.datetime.now()
  95.             await ctx.send(embed=embed)  
  96.  
  97.  
  98. def setup(bot):
  99.     bot.add_cog(helpcommand(bot))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement