Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Darkziken's bot made by Darkziken
- import discord
- from discord.ext import commands
- from discord.ext.commands import Bot
- import asyncio
- import chalk
- import random
- import youtube_dl
- bot = commands.Bot(command_prefix = ':')
- bot.remove_command('help')
- players = {}
- @bot.event
- async def on_message(message):
- channel = message.channel
- if message.content.startswith("Hi"):
- await bot.send_message(channel, "Hey There")
- await bot.say(message.author.mention)
- await bot.process_commands(message)
- @bot.event
- async def on_member_join(member):
- await bot.say("{} have joined here".format(userName)
- @bot.command(pass_context=True)
- async def warn(ctx, user: discord.Member):
- await bot.say("Don't do that again, @{}. You have been warned".format(user.name))
- return await bot.warn(user)
- @bot.command(pass_context=True)
- async def say(ctx, *args):
- mesg = ' '.join(args)
- await bot.delete_message(ctx.message)
- return await bot.say(mesg)
- @bot.command(pass_context=True)
- async def info(ctx, user: discord.Member):
- author = ctx.message.author
- embed = discord.Embed(
- colour = discord.Colour.blue()
- )
- embed.set_author(name="info")
- embed.add_field(name="The users Name is:", value="{}".format(user.name))
- embed.add_field(name="The users ID is:", value="{}".format(user.id))
- embed.add_field(name="The users status is:", value="{}".format(user.status))
- embed.add_field(name="The users highest role is:", value="{}".format(user.top_role))
- embed.add_field(name="The user joined at:", value="{}".format(user.joined_at))
- await bot.send_message(author, embed=embed)
- @bot.command(pass_context=True)
- async def kick(ctx, user: discord.User):
- if ctx.message.author.server_permissions.kick_members:
- try:
- await bot.say(":boot: Cya, **{}**. Ya loser!".format(user.name))
- await bot.kick(user)
- except discord.errors.Forbidden:
- await bot.say('Either I do not have permission to ban people, or the person you are trying to ban is a role above me.')
- else:
- await bot.say("If you feel like someone is being bad or in conflict with you, contact a mod or higher that is online")
- @bot.command(pass_context=True)
- async def ban(ctx, userName: discord.User):
- if ctx.message.author.server_permissions.ban_members:
- try:
- await bot.ban(userName)
- await bot.say('user **{}** has been banned from the server.'.format(userName))
- except discord.errors.Forbidden:
- await bot.say('Either I do not have permission to ban people, or the person you are trying to ban is a role above me.')
- else:
- await bot.say("If you feel like someone is being bad or in conflict with you, contact a mod or higher that is online!")
- @bot.command(pass_context=True)
- async def eightball(ctx):
- await bot.say(random.choice([ "It is certain :8ball:",
- "It is decidedly so :8ball:",
- "Without a doubt :8ball:",
- "Yes, definitely :8ball:",
- "You may rely on it :8ball:",
- "As I see it, yes :8ball:",
- "Most likely :8ball:",
- "Outlook good :8ball:",
- "Yes :8ball:",
- "Signs point to yes :8ball:",
- "Reply hazy try again :8ball:",
- "Ask again later :8ball:",
- "Better not tell you now :8ball:",
- "Cannot predict now :8ball:",
- "Concentrate and ask again :8ball:",
- "Don't count on it :8ball:",
- "My reply is no :8ball:",
- "My sources say no :8ball:",
- "Outlook not so good :8ball:",
- "Very doubtful :8ball:"]))
- @bot.command(pass_context=True)
- async def ping(ctx):
- await bot.say(ctx.message.author.mention)
- return await bot.say("Pinged now u happy?")
- print ("user has pinged")
- @bot.command(pass_context=True)
- async def RickRoll(ctx):
- await bot.say("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
- @bot.command(pass_context=True)
- async def loganpaul(ctx):
- await bot.say("https://www.youtube.com/channel/UCG8rbF3g2AMX70yOd8vqIZg")
- @bot.command(pass_context=True)
- async def jakepaul(ctx):
- await bot.say("https://www.youtube.com/watch?v=hSlb1ezRqfA")
- @bot.command(pass_context=True)
- async def clear(ctx, amount=5):
- print("clear Command")
- if ctx.message.author.server_permissions.ban_members:
- channel = ctx.message.channel
- messages = []
- async for message in bot.logs_from(channel, limit=int(amount) + 1):
- messages.append(message)
- await bot.delete_messages(messages)
- print("clear Auth")
- else:
- await bot.send_message(ctx.message.channel, "Permission Denied")
- print("clear Block")
- @bot.command(pass_context=True)
- async def help(ctx):
- author = ctx.message.author
- embed = discord.Embed(
- colour = discord.Colour.blue()
- )
- embed.set_author(name="help")
- embed.add_field(name="prefix", value=":", inline=True)
- embed.add_field(name="ping", value="Ping the creator of this bot!", inline=False)
- embed.add_field(name="ban", value="Ban people from your server", inline=False)
- embed.add_field(name="kick", value="Kick people from your server", inline=False)
- embed.add_field(name="clear", value="clear the chat", inline=False)
- embed.add_field(name="say", value="Make the bot say anything you want", inline=False)
- embed.add_field(name="warn", value="Warn people on your server", inline=False)
- embed.add_field(name="eightball", value="ask some random question and it will answer randomly", inline=False)
- embed.add_field(name="RickRoll", value="Send a link to a rickroll video", inline=False)
- embed.add_field(name="loganpaul", value="Send a link for loganpaul's channel", inline=False)
- embed.add_field(name="jakepaul", value="senda link to Its everyday bro", inline=False)
- embed.add_field(name="info", value="gives an info about u or other people u ping", inline=False)
- await bot.send_message(author, embed=embed)
- @bot.command(pass_context=True)
- async def join(ctx):
- channel = ctx.message.author.voice.voice_channel
- await bot.join_voice_channel(channel)
- @bot.command(pass_context=True)
- async def leave(ctx):
- server = ctx.message.server
- voice_client = bot.voice_client_in(server)
- await voice_client.disconnect()
- @bot.command(pass_context=True)
- async def play(ctx,url):
- server = ctx.message.server
- voice_client = bot.voice_client_in(server)
- player = await voice_client.create_ytdl_player("ytsearch:" + url, after=lambda: check_queue(server.id))
- players[server.id] = player
- player.start()
- @bot.command(pass_context=True)
- async def cf(ctx):
- await bot.say(random.choice([ "head",
- "tail"]))
- bot.run("4382964327642389462839")101% my token no scam
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement