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