Advertisement
Trophoon7867

Untitled

Aug 5th, 2021
745
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.38 KB | None | 0 0
  1. import time
  2. import discord
  3. from discord.enums import SpeakingState, Status
  4. from discord.ext import commands
  5.  
  6. client = commands.Bot(command_prefix="skit! ")
  7.  
  8. client.remove_command("help")
  9.  
  10. @client.event
  11. async def on_ready():
  12.     print("ready.")
  13.     await client.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="myself going under maintenance"))
  14.  
  15.  
  16.  
  17.  
  18. @client.command()
  19. async def help(ctx):
  20.     logs = client.get_channel(869946858062102588)
  21.     author = ctx.author
  22.     #embed = discord.Embed(title="ERROR", description="bot under-maintenance", colour = discord.Colour.dark_red())
  23.     embed = discord.Embed(title="Hello, I see you need my help", description="here are all of my commands", colour=discord.Colour.random())
  24.     embed.add_field(name="My headquarters server", value="https://discord.gg/Db3kzjtAGF")
  25.     embed.add_field(name="1. mod help", value="skit! mod_help")
  26.     embed.add_field(name="2. Fun help", value="skit! fun_help")
  27.     embed.add_field(name="3. call for customer service", value="skit! customer_service_call {reason}")
  28.     embed.add_field(name="4. credits", value="skit! credits")
  29.     embed.add_field(name="5. invite", value="skit! invite")
  30.     embed.set_footer(text = f"requested by {author}")
  31.     await ctx.send(embed=embed)
  32.     await logs.send(f'{author} just requested the help command in "{author.guild.name}" ')
  33.  
  34.  
  35. @client.command()
  36. async def invite(ctx):
  37.     author = ctx.author
  38.     logs = client.get_channel(869946858062102588)
  39.     embed = discord.Embed(title="Invite Here", description="^^^^^", url="https://discord.com/api/oauth2/authorize?client_id=869941239636721725&permissions=8&scope=bot", colour=discord.Colour.random())
  40.     await ctx.send(embed=embed)
  41.     await logs.send(f"{author} wants to invite the bot  :smile:")
  42.  
  43.  
  44. @client.command()
  45. async def fun_help(ctx):
  46.     author = ctx.author
  47.     logs = client.get_channel(869946858062102588)
  48.     embed = discord.Embed(title="you needed help on fun commands", description="here is a list of all my fun commands", colour = discord.Colour.random())
  49.     embed.add_field(name="1. slap", value="skit! slap {member}")
  50.     embed.set_footer(text = f"requested by {author}")
  51.     await ctx.send(embed=embed)
  52.     await logs.send(f"{author} wants to know how to do fun things")
  53.  
  54.  
  55.  
  56. @client.command()
  57. async def slap(ctx, member : discord.Member):
  58.     author = ctx.author
  59.     logs = client.get_channel(869946858062102588)
  60.     await ctx.send(f"{member.mention} has just been slapped")
  61.     await logs.send(f"{author} has just slapped {member}")
  62.     await ctx.message.delete()
  63.  
  64. @client.command()
  65. async def credits(ctx):
  66.     embed = discord.Embed(title="My credits", description="here are the people who made me", colour = discord.Colour.random())
  67.     embed.add_field(name="```Developer(s)```", value="Infinity-dev#0065")
  68.     embed.add_field(name="```Helpers```", value="p a b l o#0001")
  69.     await ctx.send(embed=embed)
  70.  
  71.  
  72. @client.command()
  73. async def mod_help(ctx):
  74.     author = ctx.author
  75.     author_dm = await author.create_dm()
  76.     embed = discord.Embed(title="moderator help", description="here is all of my moderation commands", colour = discord.Colour.random())
  77.     embed.add_field(name="1. purge", value="skit! purge {amount of messages}")
  78.     await ctx.send(f"{author.mention} check you're dm's")
  79.     await author_dm.send(embed=embed)
  80.    
  81.  
  82. @client.command()
  83. async def customer_service_call(ctx, *, arg):
  84.     guild = ctx.message.guild
  85.     author = ctx.author
  86.     link = await ctx.channel.create_invite(max_age = 300)
  87.     mod_call = client.get_channel(870629686890344530)
  88.     await ctx.send("calling for customer service...")
  89.     embed = discord.Embed(title="CUSTOMER SERVICE CALL", description=f"customer service call incoming", colour = discord.Colour.red())
  90.     embed.add_field(name="request by: ", value=f"{author}")
  91.     embed.add_field(name="request from: ", value=f"{author.guild.name}")
  92.     embed.add_field(name="request reason: ", value=f"{arg}")
  93.     embed.add_field(name="server invite: ", value=f"{link}")
  94.     await mod_call.send(embed=embed)
  95.     time.sleep(0.3)
  96.     await ctx.send(f"{author.mention} a skittles customer service staff member will be with you shortly")
  97.  
  98.  
  99.  
  100.  
  101. @client.command()
  102. async def purge(ctx, amount : int = 5):
  103.     logs = client.get_channel(869946858062102588)
  104.     author = ctx.author
  105.     if amount == None:
  106.         await ctx.channel.purge(limit=5)
  107.         await ctx.send("sucessfully purged 5 since amount was not specified")
  108.    
  109.     else:
  110.         await ctx.channel.purge(limit=amount)
  111.         await ctx.send(f"sucessfully purged {amount} message(s)")
  112.  
  113.     await logs.send(f'{author} has just purged {amount} messages in "{author.guild.name}" ')
  114.  
  115.  
  116.  
  117. @client.command()
  118. async def AdminPanel(ctx, *, arg):
  119.     author = ctx.author
  120.     embed = discord.Embed(title="AdminPanel", description=f"admin id = {author.id}", colour = discord.Colour.random())
  121.     embed.add_field(name=":no_entry_sign: shutdown bot instance", value="skit! InstanceShutdown {key}")
  122.  
  123.     if arg == "jD1sj7p6wv8ITVhcMbxW":
  124.         await ctx.message.delete()
  125.         await author.send(embed=embed)
  126.  
  127.     else:
  128.         await ctx.send(f"{author.mention} that admin key is invalid")
  129.  
  130.  
  131.  
  132. @client.command()
  133. async def InstanceShutdown(ctx, *, arg):
  134.     if arg == "jD1sj7p6wv8ITVhcMbxW":
  135.         await ctx.send
  136.  
  137.  
  138. client.run("ODY5OTQxMjM5NjM2NzIxNzI1.YQFh6g.GjlCuMk-91T-FDo20Se6weu9OUY")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement