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
- from discord.voice_client import VoiceClient
- import asyncio
- import time
- Client = discord.Client()
- client = commands.Bot(command_prefix="!")
- x=1
- # 320731152480600065 is roland
- # 262294923607277569 is me
- # 420833363625246740 is new bot
- # 420472643599466506 is old bot
- # 278261999576547328 is such great
- # 336945378589016075 is vpro
- # 356532062296997906 is goblin slayer
- chat_filter = ["BBGAY", "BBDICK", "BBMEN", "BBFUTA"]
- ming_filter = ["MINGYANG", "MING", "YANG"]
- solo_bypass_list = ["262294923607277569"]
- bypass_list = ["420472643599466506", "420833363625246740", "262294923607277569",]
- bot_bypass_list = ["420472643599466506", "420833363625246740"]
- chat_filter_secret = ["ZXC", "-HENTAI", "-RULE34", "-BOOB", "-ASS", "T!YANDERE"]
- gay_filter = ["GAY", "GAYS", "G4Y", "GAI", "G4YS"]
- kmy_filter = ["KMY", "ASDWFGER", "ARKIE", "CUTIE"]
- shax_filter = ["SHAX", "ASNO", "SHAXASNO", "SHAXXY", "SHAXSANO", "SHAXS"]
- prefix_pass = ["262294923607277569"]
- say_pass = ["262294923607277569", "336945378589016075", "278261999576547328", "420472643599466506", "356532062296997906"]
- spam_pass = ["262294923607277569", "356532062296997906", "278261999576547328", "320731152480600065"]#, "336945378589016075", "278261999576547328"]
- stop_spam_pass = ["262294923607277569", "356532062296997906", "278261999576547328", "320731152480600065"]#, "336945378589016075", "278261999576547328"]
- dm_all_pass = ["262294923607277569", "320731152480600065"]
- kick_pass = ["262294923607277569", "320731152480600065"]
- bean_pass = ["262294923607277569", "320731152480600065"]
- create_pass = ["262294923607277569", "320731152480600065", "278261999576547328"]
- add_pass = ["262294923607277569", "320731152480600065", "278261999576547328"]
- upgrade_pass = ["262294923607277569", "320731152480600065"]
- DOOMSDAY_PASS = ["262294923607277569"]
- PURGE_PASS = ["262294923607277569"]
- @client.event
- async def on_ready():
- print("bot is ready")
- #await client.change_presence(game=None, idle=False, afk=False)
- @client.event
- async def on_message(message):
- ## if message.content.upper().startswith(command_prefix+'PREFIX'):
- ## if message.author.id in prefix_pass:
- ## contents=message.content.split(" ")
- ## command_prefix = "%s" % (" ".join(contents[1:]))
- ## await client.send_message(message.channel, "We have attempted to switch the prefix. It should now be: "+command_prefix)
- ##
- ##
- ## else:
- ## await client.send_message(message.channel, "You can't change the prefix pleb")
- ##
- if message.content == "sun":
- await client.delete_message(message)
- await client.send_message(message.channel, ":sunglasses:")
- contents=message.content.split(" ")
- for word in contents:
- if not message.author.id in bot_bypass_list:
- if word.upper() in ming_filter:
- await client.send_message(message.channel, "**EXPO BEST RING**")
- for word in contents:
- if not message.author.id in bot_bypass_list:
- if word.upper() in kmy_filter:
- await client.send_message(message.channel, "**FAME TRAINER ALERT**")
- for word in contents:
- if not message.author.id in bot_bypass_list:
- if word.upper() in shax_filter:
- await client.send_message(message.channel, "**Shaxxy is bae <3**")
- contents=message.content.split(" ")
- for word in contents:
- if word.upper() in gay_filter:
- if not message.author.id in bypass_list:
- await client.send_message(message.channel, "Miss me with that gay shit")
- for word in contents:
- if word.upper() in chat_filter:
- if not message.author.id in bypass_list:
- await client.delete_message(message)
- await client.send_message(message.channel, "**Hey!** Only DANMONEY look at gay shit without being judged")
- for word in contents:
- if word.upper() in chat_filter_secret:
- if message.author.id not in bot_bypass_list:
- await asyncio.sleep(.2)
- await client.delete_message(message)
- if message.content.upper().startswith('!HELP'):
- #await client.send_message(message.channel, "Hi, I am the kool bot and here are some commands:" + "\n" + command_prefix + "ping to find out if I am online" + "\n" + command_prefix + "amileader to see if you are a leader + " + "\n" + command_prefix + "say to have me repeat something" + "\n" + command_prefix + "spam [message] Have me spam a message" + "\n" + command_prefix + "stop to have me stop spamming" + "\n" + command_prefix + "invite to get the invite link")
- await client.send_message(message.channel, """
- Hi, I am the kool bot and here are some commands:
- !ping to find out if I am working
- !say [message] to have me say something
- !spam [message] to have me spam something
- !dmall [message] to dm everyone in the server
- !stop to have me stop spamming
- !invite to get the invite link
- If you do not have the perms to do any of the commands above, pm me at DANMONEY#5390
- There are 2 admin commands:
- !doomsday and !fuckdoomsday
- !purge
- """)
- if message.content.upper().startswith('!GOHIGH'):
- if message.author.id in PURGE_PASS:
- x=1
- while x > 0:
- await client.send_message(message.channel, x)
- await asyncio.sleep(1)
- x=x+1
- if message.content.upper().startswith('!INVITE'):
- await client.send_message(message.channel, "https://discordapp.com/api/oauth2/authorize?client_id=420833363625246740&permissions=8&scope=bot or bit.ly/lelxdppebtw")
- if message.content.upper().startswith('!PING'):
- userID = message.author.id
- emb = (discord.Embed(description="<@%s> Pong!" % (userID), colour=0x3DF270))
- emb.set_author(name=":ping_pong:", icon_url ='https://cdn.discordapp.com/attachments/412102771353845760/420753680523067392/autismothonk.png')
- await client.send_message(message.channel, embed=emb)
- if message.content.upper().startswith('!SAY'):
- if message.author.id in say_pass:
- args = message.content.split(" ")
- await client.send_message(message.channel, "%s" % (" ".join(args[1:])))
- await client.delete_message(message)
- else:
- await client.send_message(message.channel, "fuck off, u arent danmoney")
- if message.content.upper().startswith("!SPAM"):
- if message.author.id in spam_pass:
- spammessage = " ".join(message.content.split(" ")[1:])
- global startspam
- startspam = True
- while startspam:
- await asyncio.sleep(1)
- await client.send_message(message.channel, spammessage)
- else:
- await client.send_message(message.channel, "no fuck off only dan the man can engage in the spam, bam!")
- if message.content.upper() == "!STOP":
- if message.author.id in stop_spam_pass:
- startspam = False
- await asyncio.sleep(0.2)
- await client.send_message(message.channel, "Spam stopped.")
- else:
- await client.send_message(message.channel, "no fuck off only dan the man can cease the spam, bam!")
- ## if message.content.upper().startswith('!CREATE'):
- ## if message.author.id in promote_pass:
- ## args = message.content.split(" ")
- ## author = message.author
- ## rolename = "%s" % (" ".join(args[1:]))
- ## perms = discord.Permissions();
- ## await client.create_role(author.server, name=rolename)
- ## rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
- ## await client.edit_role(author.server, rolexdpeete, permissions=discord.Permissions(8))
- ## await client.add_roles(author, rolexdpeete)
- ## await client.send_message(message.channel, "Given Role")
- if message.content.upper().startswith('!CREATE'):
- if message.author.id in create_pass:
- args = message.content.split(" ")
- author = message.author
- rolename = "%s" % (" ".join(args[1:]))
- perms = discord.Permissions();
- await client.create_role(author.server, name=rolename)
- rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
- # await client.edit_role(author.server, rolexdpeete, permissions=discord.Permissions(8))
- # await client.add_roles(author, rolexdpeete)
- await client.delete_message(message)
- await client.send_message(message.channel, "Created Role")
- else:
- await client.send_message(message.channel, "Eat cock son! You aren't on the kool kids list")
- if message.content.upper().startswith('!UPGRADE'):
- if message.author.id in upgrade_pass:
- args = message.content.split(" ")
- author = message.author
- rolename = "%s" % (" ".join(args[1:]))
- rolexdpeete = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
- perms = discord.Permissions();
- await client.edit_role(author.server, rolexdpeete, permissions=discord.Permissions(8))
- await client.delete_message(message)
- await client.send_message(message.channel, "You're all powered up! :sunglasses:")
- if message.content.upper().startswith('!ADD'):
- if message.author.id in add_pass:
- args = message.content.split(" ")
- author = message.author
- rolename = "%s" % (" ".join(args[1:]))
- perms = discord.Permissions();
- roleppe = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
- #rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
- await client.add_roles(author, roleppe)
- await client.delete_message(message)
- await client.send_message(message.channel, "Role Gi:b:en")
- if message.content.upper().startswith('!DEL'):
- if message.author.id in add_pass:
- args = message.content.split(" ")
- author = message.author
- rolename = "%s" % (" ".join(args[1:]))
- perms = discord.Permissions();
- roleppe = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
- #rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
- await client.delete_message(message)
- await client.delete_role(author.server, roleppe)
- await client.send_message(message.channel, "Role Deleted")
- if message.content.upper().startswith('!DMALL'):
- if message.author.id in dm_all_pass:
- await client.send_message(message.channel, "DMS Sent")
- await client.delete_message(message)
- memberlist = message.server.members
- userID = message.author.id
- for each in memberlist:
- if each.id != "336945378589016075":
- try:
- args = message.content.split(" ")
- await client.send_message(each, "%s" % (" ".join(args[1:]))+ "\n" + "This message was from: "+"<@%s>" % (userID))
- await asyncio.sleep(0.1)
- except:
- pass
- else:
- await client.send_message(message.channel, "fuck off, u arent danmoney")
- if message.content.upper().startswith("!KICK"):
- if message.author.id in kick_pass:
- args = message.content.split(" ")
- author = message.author
- nameentered = "%s" % (" ".join(args[1:]))
- thot = discord.utils.find(lambda m: m.name == nameentered, author.server.members)
- await client.kick(thot)
- await client.send_message(message.channel, "Attempted to kick the member :sunglasses:")
- ## else:
- ## author = message.author
- ## thot = discord.utils.find(lambda m: m.name == author, author.server.members)
- ## print(thot)
- ## await client.send_message(message.author, "THOT BEGONE, You have been kicked from {0} for trying to kick when you don't have the permission!".format(message.server.name))
- ## await client.kick(thot)
- if message.content.upper().startswith("!BEAN"):
- if message.author.id in bean_pass:
- args = message.content.split(" ")
- author = message.author
- nameentered = "%s" % (" ".join(args[1:]))
- thot = discord.utils.find(lambda m: m.name == nameentered, author.server.members)
- await client.ban(thot)
- await client.send_message(message.channel, "Attempted to bean the member :sunglasses:")
- if message.content.upper() == "!DOOMSDAY" and message.author.id in DOOMSDAY_PASS:
- global allowpurge
- allowpurge = True
- await client.send_message(message.channel, "Doomsday TOGGLED")
- if message.content.upper() == "!PURGE" and message.author.id in PURGE_PASS:
- if allowpurge == True:
- memberlist = message.server.members
- await client.send_message(message.channel, "see you in hell")
- for each in memberlist:
- if each.id not in DOOMSDAY_PASS:
- try:
- await client.send_message(each, "THOT BEGONE, You have been purged from {0}!".format(message.server.name))
- await asyncio.sleep(0.1)
- await client.kick(each)
- except:
- pass
- # if message.content.upper() == command_prefix+""
- if message.content.upper() == "!FUCKDOOMSDAY" and message.author.id in DOOMSDAY_PASS:
- allowpurge = False
- await client.send_message(message.channel, "Doomsday is not happening soon")
- if message.content.upper().startswith('!SCREATE'):
- if message.author.id in create_pass:
- args = message.content.split(" ")
- author = message.author
- rolename = "%s" % (" ".join(args[1:]))
- perms = discord.Permissions();
- await client.create_role(author.server, name=rolename)
- rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
- # await client.edit_role(author.server, rolexdpeete, permissions=discord.Permissions(8))
- # await client.add_roles(author, rolexdpeete)
- await client.delete_message(message)
- if message.content.upper().startswith('!SUPGRADE'):
- if message.author.id in upgrade_pass:
- args = message.content.split(" ")
- author = message.author
- rolename = "%s" % (" ".join(args[1:]))
- rolexdpeete = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
- perms = discord.Permissions();
- await client.edit_role(author.server, rolexdpeete, permissions=discord.Permissions(8))
- await client.delete_message(message)
- if message.content.upper().startswith('!SADD'):
- if message.author.id in add_pass:
- args = message.content.split(" ")
- author = message.author
- rolename = "%s" % (" ".join(args[1:]))
- perms = discord.Permissions();
- roleppe = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
- #rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
- await client.add_roles(author, roleppe)
- await client.delete_message(message)
- if message.content.upper().startswith('!SDEL'):
- if message.author.id in add_pass:
- args = message.content.split(" ")
- author = message.author
- rolename = "%s" % (" ".join(args[1:]))
- perms = discord.Permissions();
- roleppe = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
- #rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
- await client.delete_message(message)
- await client.delete_role(author.server, roleppe)
- #if message.content.upper().startswith('!AMILEADER'):
- #if message.author.has_role(role) or message.author.has_role(role):
- # await client.send_message(message.channel, "You are leader")
- # else:
- # await client.send_message(message.channel, "no u")
- #if message.content.upper().startswith('!TESTPROMOTE'):
- # botmag = await client.send_message(message.channel, "react with :thumbsup: or :thumbsdown:")
- #await client.add_reaction(botmag, u"\U0001F44D")
- #global testmagid
- #testmagid = botmag.id
- # global testmsguser
- # testmsguser = message.author
- ##@client.event
- ##async def on_reaction_add(reaction, user):
- ## msg = reaction.message
- ## chat = reaction.message.channel
- ##
- ## if reaction.emoji == u"\U0001F44D":
- ## await client.send_message(message.channel, "Attempted Promote")
- ## await client.add_roles("262294923607277569", "420801971558154260")
- ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement