18 lines
394 B
Python
18 lines
394 B
Python
#!/usr/bin/python3
|
|
from bot import bot
|
|
from sys import argv as args
|
|
from traceback import format_exc
|
|
from logs import log
|
|
|
|
server = args[1] if args else "UNSTABLE"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
instance = bot(server)
|
|
try:
|
|
instance.mainloop()
|
|
except Exception:
|
|
Err = format_exc()
|
|
for line in Err.split("\n"):
|
|
log(line, server, "CRASH")
|
|
exit(1)
|