aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-07-28 11:46:22 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-07-28 11:46:22 +0000
commit3aed288ab4c76bd7ced8262af955a506d45ee5af (patch)
treedcaaceff53cef5b7e85260c74fe6effddae68046 /bot.py
parent945777abb0136b1d8f9be858365efe55287e6f6c (diff)
downloadsteve-bot-3aed288ab4c76bd7ced8262af955a506d45ee5af.tar
steve-bot-3aed288ab4c76bd7ced8262af955a506d45ee5af.tar.gz
steve-bot-3aed288ab4c76bd7ced8262af955a506d45ee5af.tar.bz2
steve-bot-3aed288ab4c76bd7ced8262af955a506d45ee5af.tar.lz
steve-bot-3aed288ab4c76bd7ced8262af955a506d45ee5af.tar.xz
steve-bot-3aed288ab4c76bd7ced8262af955a506d45ee5af.tar.zst
steve-bot-3aed288ab4c76bd7ced8262af955a506d45ee5af.zip
Added base for twitter support
Diffstat (limited to 'bot.py')
-rwxr-xr-xbot.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bot.py b/bot.py
index ced13ca..43896b6 100755
--- a/bot.py
+++ b/bot.py
@@ -42,13 +42,11 @@ class BedrockBot(commands.Bot):
with open('custom_commands.json', 'r') as f:
self.custom_commands = json.load(f)
- for extension in extensions:
- self.load_extension(extension)
-
with open('config.json', 'r') as f:
self.config = json.load(f)
config = self.config
+
async def on_ready(self):
self.uptime = datetime.datetime.utcnow()
@@ -67,6 +65,9 @@ class BedrockBot(commands.Bot):
except json.decoder.JSONDecodeError:
self.video_blacklist = []
+ for extension in extensions:
+ self.load_extension(extension)
+
self.logger.warning(f'Online: {self.user} (ID: {self.user.id})')
async def on_message(self, message):