Skip to content

Commit 2139f16

Browse files
committed
update curse words
1 parent 2f75550 commit 2139f16

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

py2_reddit_app.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ def tell_joke(joke_type):
3737
msg = random.choice([msg1, msg2, msg3])
3838

3939
msg = msg + jokehead + '...' + joke
40-
msg2 = msg.lower().replace('shit', 'sh-it').replace('fuck', 'fu-ck').replace('asshole', 'ass hole').replace('..', '.. ').replace('http://','').replace('https://','')
40+
msg2 = msg.lower().replace('shit', 'sh-it').replace('fuck', 'fu-ck')\
41+
.replace('asshole', 'ass hole')\
42+
.replace('..', '.. ')\
43+
.replace('http://','')\
44+
.replace('https://','')\
45+
.replace('goddamn', 'god damn')\
46+
.replace('bitch', 'bit-ch')
4147
return statement(msg2).simple_card('Joke Fairy', msg)
4248

4349
except Exception as e:

0 commit comments

Comments
 (0)