diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-07-28 11:46:22 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-07-28 11:46:22 +0000 |
commit | 3aed288ab4c76bd7ced8262af955a506d45ee5af (patch) | |
tree | dcaaceff53cef5b7e85260c74fe6effddae68046 /bot.py | |
parent | 945777abb0136b1d8f9be858365efe55287e6f6c (diff) | |
download | steve-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-x | bot.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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): |