From 94ae99d5d289a8373484b65e71f98c727d30d2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Fri, 4 Sep 2020 00:38:21 +0200 Subject: [PATCH] Disable Twitter mentions --- bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.py b/bot.py index 8d3a44d..bd4a1fb 100644 --- a/bot.py +++ b/bot.py @@ -73,6 +73,9 @@ class Bot(discord.Client): tweets = data.get('tweet_create_events', []) if not tweets: return + if 'user_has_blocked' in data: + # ignore mentions + return user_id = data.get('for_user_id') if not user_id: return