Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import discord
- from discord.enums import SpeakingState, Status
- from discord.ext import commands
- client = commands.Bot(command_prefix="skit! ")
- client.remove_command("help")
- @client.event
- async def on_ready():
- print("ready.")
- await client.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="myself going under maintenance"))
- @client.command()
- async def help(ctx):
- logs = client.get_channel(869946858062102588)
- author = ctx.author
- #embed = discord.Embed(title="ERROR", description="bot under-maintenance", colour = discord.Colour.dark_red())
- embed = discord.Embed(title="Hello, I see you need my help", description="here are all of my commands", colour=discord.Colour.random())
- embed.add_field(name="My headquarters server", value="https://discord.gg/Db3kzjtAGF")
- embed.add_field(name="1. mod help", value="skit! mod_help")
- embed.add_field(name="2. Fun help", value="skit! fun_help")
- embed.add_field(name="3. call for customer service", value="skit! customer_service_call {reason}")
- embed.add_field(name="4. credits", value="skit! credits")
- embed.add_field(name="5. invite", value="skit! invite")
- embed.set_footer(text = f"requested by {author}")
- await ctx.send(embed=embed)
- await logs.send(f'{author} just requested the help command in "{author.guild.name}" ')
- @client.command()
- async def invite(ctx):
- author = ctx.author
- logs = client.get_channel(869946858062102588)
- 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())
- await ctx.send(embed=embed)
- await logs.send(f"{author} wants to invite the bot :smile:")
- @client.command()
- async def fun_help(ctx):
- author = ctx.author
- logs = client.get_channel(869946858062102588)
- embed = discord.Embed(title="you needed help on fun commands", description="here is a list of all my fun commands", colour = discord.Colour.random())
- embed.add_field(name="1. slap", value="skit! slap {member}")
- embed.set_footer(text = f"requested by {author}")
- await ctx.send(embed=embed)
- await logs.send(f"{author} wants to know how to do fun things")
- @client.command()
- async def slap(ctx, member : discord.Member):
- author = ctx.author
- logs = client.get_channel(869946858062102588)
- await ctx.send(f"{member.mention} has just been slapped")
- await logs.send(f"{author} has just slapped {member}")
- await ctx.message.delete()
- @client.command()
- async def credits(ctx):
- embed = discord.Embed(title="My credits", description="here are the people who made me", colour = discord.Colour.random())
- embed.add_field(name="```Developer(s)```", value="Infinity-dev#0065")
- embed.add_field(name="```Helpers```", value="p a b l o#0001")
- await ctx.send(embed=embed)
- @client.command()
- async def mod_help(ctx):
- author = ctx.author
- author_dm = await author.create_dm()
- embed = discord.Embed(title="moderator help", description="here is all of my moderation commands", colour = discord.Colour.random())
- embed.add_field(name="1. purge", value="skit! purge {amount of messages}")
- await ctx.send(f"{author.mention} check you're dm's")
- await author_dm.send(embed=embed)
- @client.command()
- async def customer_service_call(ctx, *, arg):
- guild = ctx.message.guild
- author = ctx.author
- link = await ctx.channel.create_invite(max_age = 300)
- mod_call = client.get_channel(870629686890344530)
- await ctx.send("calling for customer service...")
- embed = discord.Embed(title="CUSTOMER SERVICE CALL", description=f"customer service call incoming", colour = discord.Colour.red())
- embed.add_field(name="request by: ", value=f"{author}")
- embed.add_field(name="request from: ", value=f"{author.guild.name}")
- embed.add_field(name="request reason: ", value=f"{arg}")
- embed.add_field(name="server invite: ", value=f"{link}")
- await mod_call.send(embed=embed)
- time.sleep(0.3)
- await ctx.send(f"{author.mention} a skittles customer service staff member will be with you shortly")
- @client.command()
- async def purge(ctx, amount : int = 5):
- logs = client.get_channel(869946858062102588)
- author = ctx.author
- if amount == None:
- await ctx.channel.purge(limit=5)
- await ctx.send("sucessfully purged 5 since amount was not specified")
- else:
- await ctx.channel.purge(limit=amount)
- await ctx.send(f"sucessfully purged {amount} message(s)")
- await logs.send(f'{author} has just purged {amount} messages in "{author.guild.name}" ')
- @client.command()
- async def AdminPanel(ctx, *, arg):
- author = ctx.author
- embed = discord.Embed(title="AdminPanel", description=f"admin id = {author.id}", colour = discord.Colour.random())
- embed.add_field(name=":no_entry_sign: shutdown bot instance", value="skit! InstanceShutdown {key}")
- if arg == "jD1sj7p6wv8ITVhcMbxW":
- await ctx.message.delete()
- await author.send(embed=embed)
- else:
- await ctx.send(f"{author.mention} that admin key is invalid")
- @client.command()
- async def InstanceShutdown(ctx, *, arg):
- if arg == "jD1sj7p6wv8ITVhcMbxW":
- await ctx.send
- client.run("ODY5OTQxMjM5NjM2NzIxNzI1.YQFh6g.GjlCuMk-91T-FDo20Se6weu9OUY")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement