Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/ptyhon
# coding: utf-8
import sys
from TwitterFollowBot import TwitterBot
say = sys.argv[1] + " #RaspberryPi powered"
my_bot = TwitterBot()
if len(say)<130 and (len(say)-21)>0: # -21 len of the signature
my_bot.send_tweet(say)
print(say)
else:
print("Tweet empty or too long %d" %len(say))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment