Skip to content

Instantly share code, notes, and snippets.

@tatic0
Created September 22, 2015 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatic0/6f430bfad56e9daeacbf to your computer and use it in GitHub Desktop.
Save tatic0/6f430bfad56e9daeacbf to your computer and use it in GitHub Desktop.
#!/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