Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 436 Bytes
from github import jdvr_repos_update_at
from twitteraccounts import JuanVega
import time
def publish_gihhub_repos_update():
GITHUB_TOKE = "**"
repos = jdvr_repos_update_at(time.strftime("%Y-%m-%d"), GITHUB_TOKE)
if len(repos) == 0:
return
repos_names = map(lambda r: r['name'], repos)
JuanVega().publish_tweet("Repositories updated today: " + ", ".join(repos_names) + ". Visit me at http://bit.ly/1CC4AEL")