module.exports = class { onCreate() { this.state = { filters: [], filtered: false, } } onInput(input) { if (!input.filter) { this.state.filters = [] this.state.filtered = false return } this.state.filtered = input.filter.search || input.filter.channels || input.filter.characters || input.filter.events } select(value) { this.emit("select", value) } }