From a75c906022f3904aa5e76836c8aef8e09041979e Mon Sep 17 00:00:00 2001 From: Sean Wang Date: Fri, 22 Mar 2019 03:15:45 -0400 Subject: [PATCH] Fixed a bug in the string path. Added a few more words. Removed some legacy code --- christian_crusader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/christian_crusader.py b/christian_crusader.py index e7f664a..1f0899e 100644 --- a/christian_crusader.py +++ b/christian_crusader.py @@ -5,7 +5,7 @@ from pathlib import Path BOT_PREFIX = "+" -token_config = open(str(Path("BotToken.config").absolute()) +token_config = open(str(Path("BotToken.config").absolute())) TOKEN = token_config.readline().split()[0] @@ -127,6 +127,8 @@ async def on_message(message): 'tit': 'bit', 'tits': 'bits', 'lmfao': 'lmfba', + 'whore': 'princess', + 'slut': 'butt' } possible_retorts = [ ', you vile creature....', @@ -143,8 +145,6 @@ async def on_message(message): return for key in bad_words.keys(): if key in words_in_message: - if tricked is True: - tricked = False bad_word_count = bad_word_count + 1 await client.send_message(message.channel, message.author.mention + random.choice(possible_retorts) + ' I suggest you change ' + key + ' to ' +