Ninja_Pig

Untitled

Apr 12th, 2013
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.08 KB | None | 0 0
  1. """
  2. This removes Rascism and Religous statements
  3.  
  4. BASE BY : Influx
  5. Very minor edits by Ninja Pig
  6.  
  7. """
  8. import string
  9.      
  10. def apply_script(protocol, connection, config):
  11.      
  12.     class abrvConnection(connection):
  13.         global abrvdict
  14.  
  15.         abrvdict = {
  16. 'nigger',
  17. 'chink',
  18. 'ching chong',
  19. 'jew',
  20. '10% off',
  21. '51st Stater',
  22. '7-11',
  23. 'abba-dabba',
  24. 'natzi',
  25. 'slave',
  26. 'africant',
  27. 'slave',
  28. 'africoon',
  29. 'amerikkklan',
  30. 'kluxer',
  31. 'japanigger',
  32. 'jew jew bee',
  33. 'jew killer',
  34. 'beiber',
  35. 'swag',
  36. 'yolo',
  37. '666',
  38. 'satan',
  39. 'jesus',
  40. 'god',
  41. 'noah ark',
  42. 'ching'
  43. 'chong'
  44. 'bible'
  45. 'terrorist'
  46. 'terrorism'
  47.  
  48. }
  49.      
  50.         def on_chat(self, value, global_message):
  51.             message = string.lower(value)
  52.             for punc in string.punctuation:
  53.                 message = message.replace(punc,"")
  54.             if any(rascist in message for rascist in germandict):
  55.                 self.send_chat('%s is a rascist bitch.')
  56.                 return False
  57.             return connection.on_chat(self, value, global_message)
  58.      
  59.     return protocol, noabrvConnection
Advertisement
Add Comment
Please, Sign In to add comment