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