mirror of
https://github.com/Specoolazius/mcserver-discordbot.git
synced 2024-11-25 06:49:41 +01:00
17 lines
241 B
Python
17 lines
241 B
Python
|
import sys
|
||
|
from aiohttp import ClientConnectorError
|
||
|
|
||
|
from libs.bot import ServerBot
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
bot = ServerBot()
|
||
|
|
||
|
try:
|
||
|
bot.run()
|
||
|
|
||
|
except ClientConnectorError as e:
|
||
|
sys.exit(-59)
|
||
|
|
||
|
sys.exit(0)
|