From c41f574d9d5fd8201721a33827c77481b93cf8ff Mon Sep 17 00:00:00 2001 From: robin Date: Thu, 26 May 2022 11:27:30 +0200 Subject: [PATCH] Add shebang, remove unused code --- main.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) mode change 100644 => 100755 main.py diff --git a/main.py b/main.py old mode 100644 new mode 100755 index 9b64f08..069b414 --- a/main.py +++ b/main.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from settings import * from mastodon import Mastodon from os.path import exists @@ -25,15 +26,6 @@ def main(): api_base_url = api_url ) mastodon_user = mastodon_api.account_verify_credentials() -# auth = tweepy.OAuthHandler( -# twitter_auth_keys['consumer_key'], -# twitter_auth_keys['consumer_secret'] -# ) -# auth.set_access_token( -# twitter_auth_keys['access_token'], -# twitter_auth_keys['access_token_secret'] -# ) -# twitter_api = tweepy.API(auth) twitter_api = tweepy.Client( consumer_key = twitter_auth_keys['consumer_key'], consumer_secret = twitter_auth_keys['consumer_secret'],