[overlays] Add hide option to debug overlay

to filter events like `join` and `part` and not to get spammed

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-10-23 13:17:41 +02:00
parent 00f88e17ce
commit fb2ad178f0
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5
2 changed files with 5 additions and 0 deletions

View file

@ -14,6 +14,7 @@
* [core] Move storage to database (#30, #32) ⚠ * [core] Move storage to database (#30, #32) ⚠
* [core] Allow to pass ID to channel modification * [core] Allow to pass ID to channel modification
* [editor] Add all template functions to highlighter * [editor] Add all template functions to highlighter
* [overlays] Add `hide` option to debug overlay
* [templating] Add sprig functions, replace some built-ins ⚠ * [templating] Add sprig functions, replace some built-ins ⚠
* Bugfixes * Bugfixes

View file

@ -74,6 +74,10 @@
window.botClient = new EventClient({ window.botClient = new EventClient({
handlers: { handlers: {
_: (evt, data, time, live) => { _: (evt, data, time, live) => {
if (window.botClient.paramOptionFallback('hide', '').split(',').includes(evt)) {
return
}
this.events = [ this.events = [
{ event: evt, fields: data, time }, { event: evt, fields: data, time },
...this.events, ...this.events,