aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
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):
a href='/steve-bot.git/commit/cogs/utils.py?id=8a14da0b5f0d2299452e9b48bf01d09abfba2507&follow=1'>Remove useless dependenciesMango0x451-10/+8