[U] Update usage in tweepy login

This commit is contained in:
Hykilpikonna
2021-11-03 15:59:44 -04:00
parent 9ff31adbcd
commit 00be8d7d40
+2 -2
View File
@@ -51,7 +51,7 @@ def tweepy_login(conf: Config) -> tweepy.API:
:param conf: Config from load_config()
:return: Tweepy API object
"""
auth = tweepy.OAuthHandler(conf['consumer_key'], conf['consumer_secret'])
auth.set_access_token(conf['access_token'], conf['access_secret'])
auth = tweepy.OAuthHandler(conf.consumer_key, conf.consumer_secret)
auth.set_access_token(conf.access_token, conf.access_secret)
api: tweepy.API = tweepy.API(auth)
return api