Created
September 22, 2015 12:57
-
-
Save tatic0/6f430bfad56e9daeacbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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