mcserver-discordbot/bot/run.py

17 lines
241 B
Python
Raw Normal View History

2022-03-30 16:08:06 +02:00
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)