Replace some patterns in a message before sending it.
Insert a pattern in the form
%pattern%
in your message, and it will be replaced by the corresponding text.
The list of provided patterns is:
You can easily edit this plugin to add your own patterns. For example if don’t want to search for an insult everytime you’re angry, you can create a curse pattern this way:
self.patterns['curse'] = replace_curse
def replace_curse(message, tab):
return random.choice(['dumb shit', 'idiot', 'moron'])
and you can now use something like
Shut up, %curse%!
in your everyday-conversations.
For more convenience, you can read your nice words from a file, do whatever you want in that function, as long as it returns a string.