2015-05-26 14:21:19 -04:00
|
|
|
#
|
|
|
|
# Copyright 2015 (c) Anna Schumaker
|
|
|
|
#
|
|
|
|
|
|
|
|
from . import api
|
2015-05-26 14:44:59 -04:00
|
|
|
from . import auth
|
2015-05-26 15:20:12 -04:00
|
|
|
from . import channels
|
|
|
|
|
2015-05-26 14:44:59 -04:00
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify connection and setup team information.
|
|
|
|
#
|
|
|
|
|
|
|
|
if api.test() == False:
|
|
|
|
print("Connection error, cannot continue.")
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
__auth = auth.test()
|
|
|
|
if __auth == None:
|
|
|
|
sys.exit(1)
|
|
|
|
__TEAM = __auth["team"]
|