Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add adbreak_notify event #56

Open
Luzifer opened this issue Mar 27, 2024 · 0 comments
Open

Add adbreak_notify event #56

Luzifer opened this issue Mar 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Luzifer
Copy link
Owner

Luzifer commented Mar 27, 2024

As a streamer I want to give my viewers a little heads-up in the chat when an ad-break is about to start.

To do so we can't rely on the EventSub events as those only trigger when the ads are already running.

Instead we should periodically poll the Get Ad Schedule API to know when the next ad will be playing. The user should be able to configure the time in advance used to send the notification using the module config:

module_config:
  adNotify:
    default:
      notifyAdvance: 1m
    luziferus:
      notifyAdvance: 2m

which would then create an adbreak_notify event in #luziferus 2m before the ads are starting (by schedule, manually created ads will obviously not have that event) and in all other channels 1m before.

@Luzifer Luzifer added the enhancement New feature or request label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant