From skybot
This commit is contained in:
parent
d5ddc72a53
commit
baa98ee5cc
|
@ -17,6 +17,7 @@ def decode(txt):
|
|||
|
||||
|
||||
def censor(text):
|
||||
text = text.replace('\n', '').replace('\r', '')
|
||||
replacement = '[censored]'
|
||||
if 'censored_strings' in bot.config:
|
||||
words = map(re.escape, bot.config['censored_strings'])
|
||||
|
|
Reference in a new issue