Update elitebot.py

This commit is contained in:
Colby 2024-02-21 17:30:47 +01:00
parent 04816f0664
commit 64fdbf7302

View file

@ -1,6 +1,7 @@
#!/usr/bin/env python3
import sys
import asyncio # Added this import
from src.bot import Bot
@ -22,7 +23,7 @@ def main():
try:
print('EliteBot started successfully!')
bot.start()
asyncio.run(bot.start()) # Corrected here
except Exception as e:
print(f'Error starting EliteBot: {e}')
sys.exit(1)