Advertisement
Guest User

Untitled

a guest
Mar 9th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.38 KB | None | 0 0
  1. import discord
  2. from discord.ext.commands import Bot
  3. from discord.ext import commands
  4. from discord.voice_client import VoiceClient
  5. import asyncio
  6. import time
  7.  
  8. Client = discord.Client()
  9. client = commands.Bot(command_prefix="!")
  10. x=1
  11.  
  12.  
  13. # 320731152480600065 is roland
  14. # 262294923607277569 is me
  15. # 420833363625246740 is new bot
  16. # 420472643599466506 is old bot
  17. # 278261999576547328 is such great
  18. # 336945378589016075 is vpro
  19. # 356532062296997906 is goblin slayer
  20.  
  21. chat_filter = ["BBGAY", "BBDICK", "BBMEN", "BBFUTA"]
  22. ming_filter = ["MINGYANG", "MING", "YANG"]
  23. solo_bypass_list = ["262294923607277569"]
  24. bypass_list = ["420472643599466506", "420833363625246740", "262294923607277569",]
  25. bot_bypass_list = ["420472643599466506", "420833363625246740"]
  26. chat_filter_secret = ["ZXC", "-HENTAI", "-RULE34", "-BOOB", "-ASS", "T!YANDERE"]
  27. gay_filter = ["GAY", "GAYS", "G4Y", "GAI", "G4YS"]
  28. kmy_filter = ["KMY", "ASDWFGER", "ARKIE", "CUTIE"]
  29. shax_filter = ["SHAX", "ASNO", "SHAXASNO", "SHAXXY", "SHAXSANO", "SHAXS"]
  30.  
  31. prefix_pass = ["262294923607277569"]
  32. say_pass = ["262294923607277569", "336945378589016075", "278261999576547328", "420472643599466506", "356532062296997906"]
  33. spam_pass = ["262294923607277569", "356532062296997906", "278261999576547328", "320731152480600065"]#, "336945378589016075", "278261999576547328"]
  34. stop_spam_pass = ["262294923607277569", "356532062296997906", "278261999576547328", "320731152480600065"]#, "336945378589016075", "278261999576547328"]
  35. dm_all_pass = ["262294923607277569", "320731152480600065"]
  36. kick_pass = ["262294923607277569", "320731152480600065"]
  37. bean_pass = ["262294923607277569", "320731152480600065"]
  38. create_pass = ["262294923607277569", "320731152480600065", "278261999576547328"]
  39. add_pass = ["262294923607277569", "320731152480600065", "278261999576547328"]
  40. upgrade_pass = ["262294923607277569", "320731152480600065"]
  41. DOOMSDAY_PASS = ["262294923607277569"]
  42. PURGE_PASS = ["262294923607277569"]
  43.  
  44.  
  45. @client.event
  46. async def on_ready():
  47. print("bot is ready")
  48. #await client.change_presence(game=None, idle=False, afk=False)
  49.  
  50. @client.event
  51. async def on_message(message):
  52.  
  53. ## if message.content.upper().startswith(command_prefix+'PREFIX'):
  54. ## if message.author.id in prefix_pass:
  55. ## contents=message.content.split(" ")
  56. ## command_prefix = "%s" % (" ".join(contents[1:]))
  57. ## await client.send_message(message.channel, "We have attempted to switch the prefix. It should now be: "+command_prefix)
  58. ##
  59. ##
  60. ## else:
  61. ## await client.send_message(message.channel, "You can't change the prefix pleb")
  62. ##
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. if message.content == "sun":
  71. await client.delete_message(message)
  72. await client.send_message(message.channel, ":sunglasses:")
  73.  
  74. contents=message.content.split(" ")
  75. for word in contents:
  76. if not message.author.id in bot_bypass_list:
  77. if word.upper() in ming_filter:
  78. await client.send_message(message.channel, "**EXPO BEST RING**")
  79.  
  80. for word in contents:
  81. if not message.author.id in bot_bypass_list:
  82. if word.upper() in kmy_filter:
  83. await client.send_message(message.channel, "**FAME TRAINER ALERT**")
  84.  
  85. for word in contents:
  86. if not message.author.id in bot_bypass_list:
  87. if word.upper() in shax_filter:
  88. await client.send_message(message.channel, "**Shaxxy is bae <3**")
  89.  
  90. contents=message.content.split(" ")
  91. for word in contents:
  92. if word.upper() in gay_filter:
  93. if not message.author.id in bypass_list:
  94. await client.send_message(message.channel, "Miss me with that gay shit")
  95.  
  96. for word in contents:
  97. if word.upper() in chat_filter:
  98. if not message.author.id in bypass_list:
  99. await client.delete_message(message)
  100. await client.send_message(message.channel, "**Hey!** Only DANMONEY look at gay shit without being judged")
  101.  
  102.  
  103.  
  104.  
  105.  
  106. for word in contents:
  107. if word.upper() in chat_filter_secret:
  108. if message.author.id not in bot_bypass_list:
  109. await asyncio.sleep(.2)
  110. await client.delete_message(message)
  111.  
  112. if message.content.upper().startswith('!HELP'):
  113. #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")
  114. await client.send_message(message.channel, """
  115. Hi, I am the kool bot and here are some commands:
  116. !ping to find out if I am working
  117. !say [message] to have me say something
  118. !spam [message] to have me spam something
  119. !dmall [message] to dm everyone in the server
  120. !stop to have me stop spamming
  121. !invite to get the invite link
  122. If you do not have the perms to do any of the commands above, pm me at DANMONEY#5390
  123.  
  124. There are 2 admin commands:
  125. !doomsday and !fuckdoomsday
  126. !purge
  127. """)
  128.  
  129. if message.content.upper().startswith('!GOHIGH'):
  130. if message.author.id in PURGE_PASS:
  131. x=1
  132. while x > 0:
  133. await client.send_message(message.channel, x)
  134. await asyncio.sleep(1)
  135. x=x+1
  136.  
  137. if message.content.upper().startswith('!INVITE'):
  138. await client.send_message(message.channel, "https://discordapp.com/api/oauth2/authorize?client_id=420833363625246740&permissions=8&scope=bot or bit.ly/lelxdppebtw")
  139.  
  140.  
  141.  
  142.  
  143. if message.content.upper().startswith('!PING'):
  144. userID = message.author.id
  145. emb = (discord.Embed(description="<@%s> Pong!" % (userID), colour=0x3DF270))
  146. emb.set_author(name=":ping_pong:", icon_url ='https://cdn.discordapp.com/attachments/412102771353845760/420753680523067392/autismothonk.png')
  147. await client.send_message(message.channel, embed=emb)
  148.  
  149.  
  150.  
  151. if message.content.upper().startswith('!SAY'):
  152. if message.author.id in say_pass:
  153. args = message.content.split(" ")
  154. await client.send_message(message.channel, "%s" % (" ".join(args[1:])))
  155. await client.delete_message(message)
  156. else:
  157. await client.send_message(message.channel, "fuck off, u arent danmoney")
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165. if message.content.upper().startswith("!SPAM"):
  166. if message.author.id in spam_pass:
  167. spammessage = " ".join(message.content.split(" ")[1:])
  168. global startspam
  169. startspam = True
  170. while startspam:
  171. await asyncio.sleep(1)
  172. await client.send_message(message.channel, spammessage)
  173. else:
  174. await client.send_message(message.channel, "no fuck off only dan the man can engage in the spam, bam!")
  175. if message.content.upper() == "!STOP":
  176. if message.author.id in stop_spam_pass:
  177. startspam = False
  178. await asyncio.sleep(0.2)
  179. await client.send_message(message.channel, "Spam stopped.")
  180. else:
  181. await client.send_message(message.channel, "no fuck off only dan the man can cease the spam, bam!")
  182.  
  183.  
  184. ## if message.content.upper().startswith('!CREATE'):
  185. ## if message.author.id in promote_pass:
  186. ## args = message.content.split(" ")
  187. ## author = message.author
  188. ## rolename = "%s" % (" ".join(args[1:]))
  189. ## perms = discord.Permissions();
  190. ## await client.create_role(author.server, name=rolename)
  191. ## rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
  192. ## await client.edit_role(author.server, rolexdpeete, permissions=discord.Permissions(8))
  193. ## await client.add_roles(author, rolexdpeete)
  194. ## await client.send_message(message.channel, "Given Role")
  195.  
  196. if message.content.upper().startswith('!CREATE'):
  197. if message.author.id in create_pass:
  198. args = message.content.split(" ")
  199. author = message.author
  200. rolename = "%s" % (" ".join(args[1:]))
  201. perms = discord.Permissions();
  202. await client.create_role(author.server, name=rolename)
  203. rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
  204. # await client.edit_role(author.server, rolexdpeete, permissions=discord.Permissions(8))
  205. # await client.add_roles(author, rolexdpeete)
  206. await client.delete_message(message)
  207. await client.send_message(message.channel, "Created Role")
  208. else:
  209. await client.send_message(message.channel, "Eat cock son! You aren't on the kool kids list")
  210.  
  211. if message.content.upper().startswith('!UPGRADE'):
  212. if message.author.id in upgrade_pass:
  213. args = message.content.split(" ")
  214. author = message.author
  215. rolename = "%s" % (" ".join(args[1:]))
  216. rolexdpeete = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
  217. perms = discord.Permissions();
  218. await client.edit_role(author.server, rolexdpeete, permissions=discord.Permissions(8))
  219. await client.delete_message(message)
  220. await client.send_message(message.channel, "You're all powered up! :sunglasses:")
  221.  
  222.  
  223. if message.content.upper().startswith('!ADD'):
  224. if message.author.id in add_pass:
  225. args = message.content.split(" ")
  226. author = message.author
  227. rolename = "%s" % (" ".join(args[1:]))
  228. perms = discord.Permissions();
  229. roleppe = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
  230. #rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
  231. await client.add_roles(author, roleppe)
  232. await client.delete_message(message)
  233. await client.send_message(message.channel, "Role Gi:b:en")
  234.  
  235. if message.content.upper().startswith('!DEL'):
  236. if message.author.id in add_pass:
  237. args = message.content.split(" ")
  238. author = message.author
  239. rolename = "%s" % (" ".join(args[1:]))
  240. perms = discord.Permissions();
  241. roleppe = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
  242. #rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
  243. await client.delete_message(message)
  244. await client.delete_role(author.server, roleppe)
  245. await client.send_message(message.channel, "Role Deleted")
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252. if message.content.upper().startswith('!DMALL'):
  253. if message.author.id in dm_all_pass:
  254. await client.send_message(message.channel, "DMS Sent")
  255. await client.delete_message(message)
  256. memberlist = message.server.members
  257. userID = message.author.id
  258. for each in memberlist:
  259. if each.id != "336945378589016075":
  260. try:
  261. args = message.content.split(" ")
  262. await client.send_message(each, "%s" % (" ".join(args[1:]))+ "\n" + "This message was from: "+"<@%s>" % (userID))
  263. await asyncio.sleep(0.1)
  264. except:
  265. pass
  266. else:
  267. await client.send_message(message.channel, "fuck off, u arent danmoney")
  268.  
  269. if message.content.upper().startswith("!KICK"):
  270. if message.author.id in kick_pass:
  271. args = message.content.split(" ")
  272. author = message.author
  273. nameentered = "%s" % (" ".join(args[1:]))
  274. thot = discord.utils.find(lambda m: m.name == nameentered, author.server.members)
  275. await client.kick(thot)
  276. await client.send_message(message.channel, "Attempted to kick the member :sunglasses:")
  277. ## else:
  278. ## author = message.author
  279. ## thot = discord.utils.find(lambda m: m.name == author, author.server.members)
  280. ## print(thot)
  281. ## 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))
  282. ## await client.kick(thot)
  283.  
  284. if message.content.upper().startswith("!BEAN"):
  285. if message.author.id in bean_pass:
  286. args = message.content.split(" ")
  287. author = message.author
  288. nameentered = "%s" % (" ".join(args[1:]))
  289. thot = discord.utils.find(lambda m: m.name == nameentered, author.server.members)
  290. await client.ban(thot)
  291. await client.send_message(message.channel, "Attempted to bean the member :sunglasses:")
  292.  
  293.  
  294. if message.content.upper() == "!DOOMSDAY" and message.author.id in DOOMSDAY_PASS:
  295. global allowpurge
  296. allowpurge = True
  297. await client.send_message(message.channel, "Doomsday TOGGLED")
  298.  
  299.  
  300. if message.content.upper() == "!PURGE" and message.author.id in PURGE_PASS:
  301. if allowpurge == True:
  302. memberlist = message.server.members
  303. await client.send_message(message.channel, "see you in hell")
  304. for each in memberlist:
  305. if each.id not in DOOMSDAY_PASS:
  306. try:
  307. await client.send_message(each, "THOT BEGONE, You have been purged from {0}!".format(message.server.name))
  308. await asyncio.sleep(0.1)
  309. await client.kick(each)
  310. except:
  311. pass
  312.  
  313. # if message.content.upper() == command_prefix+""
  314.  
  315.  
  316. if message.content.upper() == "!FUCKDOOMSDAY" and message.author.id in DOOMSDAY_PASS:
  317. allowpurge = False
  318. await client.send_message(message.channel, "Doomsday is not happening soon")
  319.  
  320.  
  321.  
  322.  
  323.  
  324. if message.content.upper().startswith('!SCREATE'):
  325. if message.author.id in create_pass:
  326. args = message.content.split(" ")
  327. author = message.author
  328. rolename = "%s" % (" ".join(args[1:]))
  329. perms = discord.Permissions();
  330. await client.create_role(author.server, name=rolename)
  331. rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
  332. # await client.edit_role(author.server, rolexdpeete, permissions=discord.Permissions(8))
  333. # await client.add_roles(author, rolexdpeete)
  334. await client.delete_message(message)
  335.  
  336.  
  337. if message.content.upper().startswith('!SUPGRADE'):
  338. if message.author.id in upgrade_pass:
  339. args = message.content.split(" ")
  340. author = message.author
  341. rolename = "%s" % (" ".join(args[1:]))
  342. rolexdpeete = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
  343. perms = discord.Permissions();
  344. await client.edit_role(author.server, rolexdpeete, permissions=discord.Permissions(8))
  345. await client.delete_message(message)
  346.  
  347.  
  348. if message.content.upper().startswith('!SADD'):
  349. if message.author.id in add_pass:
  350. args = message.content.split(" ")
  351. author = message.author
  352. rolename = "%s" % (" ".join(args[1:]))
  353. perms = discord.Permissions();
  354. roleppe = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
  355. #rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
  356. await client.add_roles(author, roleppe)
  357. await client.delete_message(message)
  358.  
  359. if message.content.upper().startswith('!SDEL'):
  360. if message.author.id in add_pass:
  361. args = message.content.split(" ")
  362. author = message.author
  363. rolename = "%s" % (" ".join(args[1:]))
  364. perms = discord.Permissions();
  365. roleppe = discord.utils.find(lambda r: r.name == rolename, author.server.roles)
  366. #rolexdpeete = discord.utils.get(author.server.roles, name=rolename)
  367. await client.delete_message(message)
  368. await client.delete_role(author.server, roleppe)
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380. #if message.content.upper().startswith('!AMILEADER'):
  381. #if message.author.has_role(role) or message.author.has_role(role):
  382. # await client.send_message(message.channel, "You are leader")
  383. # else:
  384. # await client.send_message(message.channel, "no u")
  385.  
  386.  
  387.  
  388. #if message.content.upper().startswith('!TESTPROMOTE'):
  389. # botmag = await client.send_message(message.channel, "react with :thumbsup: or :thumbsdown:")
  390.  
  391. #await client.add_reaction(botmag, u"\U0001F44D")
  392.  
  393. #global testmagid
  394. #testmagid = botmag.id
  395.  
  396. # global testmsguser
  397. # testmsguser = message.author
  398.  
  399.  
  400.  
  401. ##@client.event
  402. ##async def on_reaction_add(reaction, user):
  403. ## msg = reaction.message
  404. ## chat = reaction.message.channel
  405. ##
  406. ## if reaction.emoji == u"\U0001F44D":
  407. ## await client.send_message(message.channel, "Attempted Promote")
  408. ## await client.add_roles("262294923607277569", "420801971558154260")
  409. ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement