forked from Pavel_Durov/python_bot
add sinonims for dickup test done
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
|
||||
import random
|
||||
def RandomDick():
|
||||
with open('tests\diction.txt', 'r', encoding='utf-8') as file:
|
||||
with open('dicktxt\dick_sinonims.txt', 'r', encoding='utf-8') as file:
|
||||
words = file.readlines()
|
||||
|
||||
random_line = random.choice(words).strip()
|
||||
return random_line
|
||||
|
||||
random_line = RandomDick()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user