options = file.readlines() | options = file.readlines() | ||||
config = {} | config = {} | ||||
for option in options: | for option in options: | ||||
o = option.split('=') | |||||
o = option.strip("\n").split('=') | |||||
config[o[0]] = config[o[1]] | config[o[0]] = config[o[1]] | ||||
self.TOKEN = config['TOKEN'] | self.TOKEN = config['TOKEN'] | ||||
self.server = config['SERVER'] | self.server = config['SERVER'] |