From c76bab25527e3214f132d7686a9a4e46e9602891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Fri, 11 Sep 2020 13:36:25 +0200 Subject: [PATCH] Differentiate between Twitter users --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index ae1a3ad..48ac725 100644 --- a/bot.py +++ b/bot.py @@ -44,6 +44,7 @@ youtube_channel_id = config.getint('Discord', 'youtube_channel_id') consumer_key = config.get('Twitter', 'consumer_key') consumer_secret = config.get('Twitter', 'consumer_secret') +twitter_user_id = config.get('Twitter', 'user_id') yt_api_key = config.get('YouTube', 'api_key') yt_channel_id = config.get('YouTube', 'channel_id') @@ -120,7 +121,7 @@ class Bot(discord.Client): # ignore mentions return user_id = data.get('for_user_id') - if not user_id: + if user_id != twitter_user_id: return api = self.get_twitter_api(user_id) if not api: