mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
[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:
parent
00f88e17ce
commit
fb2ad178f0
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue