mirror of
https://github.com/Specoolazius/mcserver-discordbot.git
synced 2024-11-25 00:19:41 +01:00
simplified run.py
This commit is contained in:
parent
71a590b9a6
commit
6cf08376da
@ -1,14 +1,12 @@
|
||||
import sys
|
||||
from aiohttp import ClientConnectorError
|
||||
|
||||
from libs.bot import ServerBot
|
||||
from libs import Client
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
bot = ServerBot()
|
||||
|
||||
try:
|
||||
bot.run()
|
||||
Client().run()
|
||||
|
||||
except ClientConnectorError as e:
|
||||
sys.exit(-59)
|
||||
|
Loading…
Reference in New Issue
Block a user