one more change.

This commit is contained in:
Alex Huddleston 2019-03-02 18:14:41 -06:00
parent 1e7c64512b
commit f7ee9ca84e

View file

@ -24,7 +24,7 @@ def main():
# Authorize Twitter, initialize tweepy # Authorize Twitter, initialize tweepy
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_key, access_secret) auth.set_access_token(access_key, access_secret)
api = tweepy.API(auth) twitter = tweepy.API(auth)
# Authorize Mastodon, set api base # Authorize Mastodon, set api base
# TODO: Modularize this # TODO: Modularize this
@ -38,7 +38,7 @@ def main():
try: try:
''' '''
# TODO: Change this to be modular and actually do something useful. # TODO: Change this to be modular and actually do something useful.
api.update_status(post) twitter.update_status(post)
mastodon.status_post(post) mastodon.status_post(post)
''' '''
print(post) print(post)