Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- This removes Rascism and Religous statements
- BASE BY : Influx
- Very minor edits by Ninja Pig
- """
- import string
- def apply_script(protocol, connection, config):
- class abrvConnection(connection):
- global abrvdict
- abrvdict = {
- 'nigger',
- 'chink',
- 'ching chong',
- 'jew',
- '10% off',
- '51st Stater',
- '7-11',
- 'abba-dabba',
- 'natzi',
- 'slave',
- 'africant',
- 'slave',
- 'africoon',
- 'amerikkklan',
- 'kluxer',
- 'japanigger',
- 'jew jew bee',
- 'jew killer',
- 'beiber',
- 'swag',
- 'yolo',
- '666',
- 'satan',
- 'jesus',
- 'god',
- 'noah ark',
- 'ching'
- 'chong'
- 'bible'
- 'terrorist'
- 'terrorism'
- }
- def on_chat(self, value, global_message):
- message = string.lower(value)
- for punc in string.punctuation:
- message = message.replace(punc,"")
- if any(rascist in message for rascist in germandict):
- self.send_chat('%s is a rascist bitch.')
- return False
- return connection.on_chat(self, value, global_message)
- return protocol, noabrvConnection
Advertisement
Add Comment
Please, Sign In to add comment