Advertisement
Neon28

Untitled

May 27th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. import discord
  2. from discord.ext.commands import Bot
  3. from discord.ext import commands
  4. import asyncio
  5. import time
  6. import random
  7.  
  8.  
  9. Client = discord.Client()
  10. client = commands.Bot(command_prefix = "Ex!")
  11.  
  12.  
  13. @client.event
  14. async def on_ready():
  15. print("Exodus is ready to roll, Time to do this !")
  16.  
  17. chat_filter = ["PINEAPPLE", "APPLE", "CHROME", "FUCK", "DADDY", "PUSSY", "DICK", "F-U-C-K" "NEON", "CUM", "SHIT", "WHORE", "CUNT","NIGGER","NIGGA","FUCKER" "MAMAI", "PAPI", "HARDER", "FUCKKK" "fuck u"]
  18. bypass_list = ["FUCK"]
  19.  
  20. from discord.utils import find
  21.  
  22. @client.event
  23. async def on_guild_join(guild):
  24. general = find(lambda x: x.name == 'general', guild.text_channels)
  25. if general and general.permissions_for(guild.me).send_messages:
  26. await general.send('Hello {}!'.format(guild.name))
  27.  
  28.  
  29.  
  30. @client.event
  31. async def on_message(message):
  32. print(message.content
  33. if message.content == "Ex!cookie":
  34. await client.send_message(message.channel, "Here is a cookie!:cookie:")
  35. if message.content == "Ex!ping":
  36. await client.send_message (message.channel, "pong!")
  37. if message.content == "command that you do":
  38. await client.send_message (message.channel, "bots anwser")
  39.  
  40. if message.content == "Ex!Hi":
  41. await client.send_message(message.channel, "Hi :smile:")
  42. print("Hi :smile:")
  43.  
  44. if message.content.upper().startswith('EX!CMDS'):
  45. userID = message.author.id
  46. await client.send_message(message.channel, "<@%s> My Prefix is Ex! ```My Commands are, Ex!hi, Ex!ping, Ex!cmds, Ex!cookie" % (userID))
  47.  
  48. if message.content.upper().startswith('EX!NEON'):
  49. userID = message.author.id
  50. await client.send_message(message.channel, "<@%s> Neon is my master!" % (userID))
  51. if message.content.upper().startswith('EX!SAY'):
  52. args = message.content.split(" ")
  53. #args[0] = !SAY
  54. #args[1] = Hey
  55. #args[2] = There
  56. #args[1:] = Hey There
  57. await client.send_message(message.channel, "%s" % (" ".join(args[1:])))
  58.  
  59. if message.content.upper().startswith('!ADMIN'):
  60. if "<429095989920661504, 429096096728481793>" in [role.id for role in message.author.roles]: #Replace <Role ID> with the ID of the role you want to be able to execute this command
  61. await client.send_message(message.channel, "You are an admin")
  62. else:
  63. await client.send_message(message.channel, "You are not an admin")
  64.  
  65. if message.content.upper().startswith('EX!NOU'):
  66. await client.send_message(message.channel, "Hi :smile:")
  67.  
  68. @client.event
  69. async def on_message(message):
  70. contents = message.content.split(" ") #contents is a list type
  71. for word in contents:
  72. if word.upper() in chat_filter:
  73. if not message.author.id in bypass_list:
  74. try:
  75. await client.delete_message(message)
  76. await client.send_message(message.channel, "**Hey!** Don't use that word again! :angry: ")
  77. except discord.errors.NotFound:
  78. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement