Ajusted the ownerlist from env varable if bank to be less destructive

This commit is contained in:
Raatty 2018-05-24 00:23:36 +12:00 committed by GitHub
parent 124df7eab1
commit dc3a34651f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,9 +15,9 @@ class LoadConfig:
self.config = json.load(fp)
# Initialize config
if self.config["ownerlist"] != []:
self.ownerlist = self.config["ownerlist"]
else:
if self.ownerlist == []:
self.ownerlist = [int(i) for i in os.getenv('ownerlist').split(',')]
self.defaultprefix = self.config["prefix"]
self.version = self.config["version"]