def validate_config(self):
    self.host = self.config['host']
    self.port = int(self.config['port'])
    self.debug = self.config.get('debug', False)
    self.username = self.config['username']
    self.password = self.config['password']
    self.status = self.config['status']
    self.status_message = self.config.get('status_message', '')
    self.ping_interval = self.config.get('ping_interval', 60)
    self.presence_interval = self.config.get('presence_interval', 60)
def validate_config(self):
    self.host = self.config['host']
    self.port = int(self.config['port'])
    self.debug = self.config.get('debug', False)
    self.username = self.config['username']
    self.password = self.config['password']
    self.status = self.config['status']
    self.status_message = self.config.get('status_message', )
    self.ping_interval = self.config.get('ping_interval', 60)
    self.presence_interval = self.config.get('presence_interval', 60)