aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot.py')
-rwxr-xr-xbot.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bot.py b/bot.py
index 387c9f8..30d8b1f 100755
--- a/bot.py
+++ b/bot.py
@@ -60,6 +60,12 @@ class BedrockBot(commands.Bot):
except json.decoder.JSONDecodeError:
self.blacklist = []
+ with open('video_blacklist.json', 'r') as f:
+ try:
+ self.video_blacklist = json.load(f)
+ except json.decoder.JSONDecodeError:
+ self.video_blacklist = []
+
self.logger.warning(f'Online: {self.user} (ID: {self.user.id})')
async def on_message(self, message):