function Highlights () {
  this.highlights = []
  this.cached = {
    id: null,
    created_at: null
  }

  if (global.commons.isSystemEnabled(this)) {
    global.parser.register(this, '!highlight list', this.list, constants.OWNER_ONLY)
    global.parser.register(this, '!highlight', this.highlight, constants.OWNER_ONLY)

    global.panel.addMenu({category: 'manage', name: 'highlights', id: 'highlights'})
    global.panel.socketListening(this, 'highlight.save', this.saveHighlight)
    global.panel.socketListening(this, 'highlight.get', this.sendHighlight)

    global.watcher.watch(this, 'highlights', this._save)
    this._update(this)
  }
}
/*
 * !highlight <?description> - save highlight with optional description
 * !highlight list           - get list of highlights in current running or latest stream
 */
!highlight  - save highlight with optional description
!highlight list           - get list of highlights in current running or latest stream
!highlight - save highlight with optional description !highlight list - get list of highlights in current running or latest stream
function Highlights () {
  this.highlights = []
  this.cached = {
    id: null,
    created_at: null
  }
  if (global.commons.isSystemEnabled(this)) {
    global.parser.register(this, '!highlight list', this.list, constants.OWNER_ONLY)
    global.parser.register(this, '!highlight', this.highlight, constants.OWNER_ONLY)
    global.panel.addMenu({category: 'manage', name: 'highlights', id: 'highlights'})
    global.panel.socketListening(this, 'highlight.save', this.saveHighlight)
    global.panel.socketListening(this, 'highlight.get', this.sendHighlight)
    global.watcher.watch(this, 'highlights', this._save)
    this._update(this)
  }
}
function Highlights ( ) { this . highlights = [ ] this . cached = { id : null , created_at : null } if ( global . commons . isSystemEnabled ( this ) ) { global . parser . register ( this , '!highlight list' , this . list , constants . OWNER_ONLY ) global . parser . register ( this , '!highlight' , this . highlight , constants . OWNER_ONLY ) global . panel . addMenu ( { category : 'manage' , name : 'highlights' , id : 'highlights' } ) global . panel . socketListening ( this , 'highlight.save' , this . saveHighlight ) global . panel . socketListening ( this , 'highlight.get' , this . sendHighlight ) global . watcher . watch ( this , 'highlights' , this . _save ) this . _update ( this ) } }
!highlight <?description> - save highlight with optional description
 !highlight list           - get list of highlights in current running or latest stream
!highlight <?description > - save highlight with optional description !highlight list - get list of highlights in current running or latest stream