|
|
@ -44,6 +44,7 @@ youtube_channel_id = config.getint('Discord', 'youtube_channel_id')
|
|
|
|
|
|
|
|
|
|
|
|
consumer_key = config.get('Twitter', 'consumer_key')
|
|
|
|
consumer_key = config.get('Twitter', 'consumer_key')
|
|
|
|
consumer_secret = config.get('Twitter', 'consumer_secret')
|
|
|
|
consumer_secret = config.get('Twitter', 'consumer_secret')
|
|
|
|
|
|
|
|
twitter_user_id = config.get('Twitter', 'user_id')
|
|
|
|
|
|
|
|
|
|
|
|
yt_api_key = config.get('YouTube', 'api_key')
|
|
|
|
yt_api_key = config.get('YouTube', 'api_key')
|
|
|
|
yt_channel_id = config.get('YouTube', 'channel_id')
|
|
|
|
yt_channel_id = config.get('YouTube', 'channel_id')
|
|
|
@ -120,7 +121,7 @@ class Bot(discord.Client):
|
|
|
|
# ignore mentions
|
|
|
|
# ignore mentions
|
|
|
|
return
|
|
|
|
return
|
|
|
|
user_id = data.get('for_user_id')
|
|
|
|
user_id = data.get('for_user_id')
|
|
|
|
if not user_id:
|
|
|
|
if user_id != twitter_user_id:
|
|
|
|
return
|
|
|
|
return
|
|
|
|
api = self.get_twitter_api(user_id)
|
|
|
|
api = self.get_twitter_api(user_id)
|
|
|
|
if not api:
|
|
|
|
if not api:
|
|
|
|