forked from Raiza.dev/EliteBot
Update elitebot.py
This commit is contained in:
parent
04816f0664
commit
64fdbf7302
1 changed files with 38 additions and 37 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue