Removed dependency on official Twitter API

This commit is contained in:
Dylan
2022-09-15 20:11:00 +01:00
parent 9d2c56ba95
commit d453933d95
3 changed files with 9 additions and 42 deletions

View File

@ -7,18 +7,12 @@ if ('RUNNING_SERVERLESS' in os.environ and os.environ['RUNNING_SERVERLESS'] == '
"link_cache":os.environ["VXTWITTER_LINK_CACHE"],
"database":os.environ["VXTWITTER_DATABASE"],
"table":os.environ["VXTWITTER_CACHE_TABLE"],
"method":os.environ["VXTWITTER_METHOD"],
"color":os.environ["VXTWITTER_COLOR"],
"appname": os.environ["VXTWITTER_APP_NAME"],
"repo": os.environ["VXTWITTER_REPO"],
"url": os.environ["VXTWITTER_URL"],
"combination_method": os.environ["VXTWITTER_COMBINATION_METHOD"] # can either be 'local' or a URL to a server handling requests in the same format
},
"api":{"api_key":os.environ["VXTWITTER_TWITTER_API_KEY"],
"api_secret":os.environ["VXTWITTER_TWITTER_API_SECRET"],
"access_token":os.environ["VXTWITTER_TWITTER_ACCESS_TOKEN"],
"access_secret":os.environ["VXTWITTER_TWITTER_ACCESS_SECRET"],
"apiMirrors":[]
"combination_method": os.environ["VXTWITTER_COMBINATION_METHOD"], # can either be 'local' or a URL to a server handling requests in the same format
"apiMirrors":[]
}
}
else:
@ -30,18 +24,12 @@ else:
"link_cache":"json",
"database":"[url to mongo database goes here]",
"table":"TwiFix",
"method":"youtube-dl",
"color":"#43B581",
"appname": "vxTwitter",
"repo": "https://github.com/dylanpdx/BetterTwitFix",
"url": "https://vxtwitter.com",
"combination_method": "local" # can either be 'local' or a URL to a server handling requests in the same format
},
"api":{"api_key":"[api_key goes here]",
"api_secret":"[api_secret goes here]",
"access_token":"[access_token goes here]",
"access_secret":"[access_secret goes here]",
"apiMirrors":[]
"combination_method": "local", # can either be 'local' or a URL to a server handling requests in the same format
"apiMirrors":[]
}
}