reads from file
parent
1d8c6a1b13
commit
dc599e0e61
|
@ -118,19 +118,19 @@ def once(tooter: Tooter):
|
||||||
# message = check_public_timeline(tooter)
|
# message = check_public_timeline(tooter)
|
||||||
message = f'{tooter.name} says hi!'
|
message = f'{tooter.name} says hi!'
|
||||||
print(
|
print(
|
||||||
# random sentence
|
# random sentence...
|
||||||
random.choice(
|
random.choice(
|
||||||
# from a random line
|
# from a random line...
|
||||||
random.choice(
|
random.choice(
|
||||||
# from a random file
|
# from a random file...
|
||||||
random.choice(
|
random.choice(
|
||||||
list(tooter.files.values())
|
list(tooter.files.values())
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
# stripped and split on full stops
|
# stripped and split on full stops...
|
||||||
.strip().split('.')
|
.strip().split('.')
|
||||||
)
|
)
|
||||||
# stripped of weird punctuation
|
# and of weird punctuation
|
||||||
.strip()
|
.strip()
|
||||||
)
|
)
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue