reads from file

main
Nicholas Hope 2022-11-26 00:19:40 -05:00
parent 1d8c6a1b13
commit dc599e0e61
1 changed files with 5 additions and 5 deletions

View File

@ -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