From 56e948b798f8fcf736e9138092b403a1b7498127 Mon Sep 17 00:00:00 2001 From: b3yond Date: Thu, 11 Oct 2018 21:29:02 +0200 Subject: [PATCH] called wrong user method --- active_bots/twitterDMs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/active_bots/twitterDMs.py b/active_bots/twitterDMs.py index 35cfbc2..5a23472 100644 --- a/active_bots/twitterDMs.py +++ b/active_bots/twitterDMs.py @@ -13,8 +13,9 @@ logger = logging.getLogger(__name__) class TwitterDMListener(Bot): + def get_api(self, user): - keys = user.get_api_keys() + keys = user.get_twitter_credentials() auth = tweepy.OAuthHandler(consumer_key=keys[0], consumer_secret=keys[1]) auth.set_access_token(keys[2], # access_token_key