Differentiate between Twitter users

master
Nikola Forró 4 years ago
parent b502d08256
commit c76bab2552

@ -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:

Loading…
Cancel
Save