Revert start change
This commit is contained in:
@@ -208,7 +208,7 @@ class DiscordBotManager:
|
|||||||
print("Starting bot...")
|
print("Starting bot...")
|
||||||
try:
|
try:
|
||||||
# Run the bot in a separate task so we can control it
|
# Run the bot in a separate task so we can control it
|
||||||
self._bot_task = asyncio.create_task(self.bot.run(self.token))
|
self._bot_task = asyncio.create_task(self.bot.start(self.token))
|
||||||
# Wait for the bot to connect (optional, useful for ensuring it's ready)
|
# Wait for the bot to connect (optional, useful for ensuring it's ready)
|
||||||
await self.bot.wait_until_ready()
|
await self.bot.wait_until_ready()
|
||||||
print("Bot started and is ready.")
|
print("Bot started and is ready.")
|
||||||
|
|||||||
Reference in New Issue
Block a user