BrianMitchL / weatherBot

⛈ A Twitter bot for weather

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use textwrap.shorten for tweets that are too long

BrianMitchL opened this issue · comments

textwrap.shorten would be a great function to auto-truncate a tweet that is too long.

This wasn't added to the standard library until python 3.4, so this will require a breaking change.

See PR WTFox#1

I noted a few things in the PR body that might be of interest.