Make the bot produce longer posts

This commit is contained in:
Anthony Wang 2022-02-23 09:59:33 -06:00
parent 7f5929b7d0
commit 4c0afade32
Signed by: a
GPG key ID: BC96B00AEC5F2D76

2
bot.py
View file

@ -63,6 +63,6 @@ mastodon = Mastodon(
api_base_url=args.instance
)
post = output.split('\n')[0]
if len(post) < 100:
if len(post) < 200:
post = output.split('\n')[0] + '\n' + output.split('\n')[1]
mastodon.status_post(post[:500])