mirror of
https://github.com/Specoolazius/mcserver-discordbot.git
synced 2026-10-06 07:01:58 +02:00
workz
This commit is contained in:
16
bot/run.py
Normal file
16
bot/run.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user