ttv-chat-bot icon indicating copy to clipboard operation
ttv-chat-bot copied to clipboard

Add Timer to Bulb Commands

Open MichaelCduBois opened this issue 6 years ago • 0 comments

This issue is for a: (mark with an x)

  • [ ] bug report -> please search issues before submitting
  • [X] feature request
  • [ ] documentation issue or request
  • [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

!bulb setTimer HH:MM:SS !bulb setTimer MM:SS

Expected/desired behavior

Scenario 1: HH:MM:SS Given that Clarkio is streaming on TwitchTV And ttv-chat-light service is active When a user has triggered a !bulb setTimer command And the user has passed a parameter in the format of HH:MM:SS Then ttv-chat-light shall parse the parameter And ttv-chat-light shall create a timer with the duration provided by the user

Scenario 2: MM:SS Given that Clarkio is streaming on TwitchTV And ttv-chat-light service is active When a user has triggered a !bulb setTimer command And the user has passed a parameter in the format of MM:SS Then ttv-chat-light shall parse the parameter And ttv-chat-light shall create a timer with the duration provided by the user

Scenario 3: Bad Input Given that Clarkio is streaming on TwitchTV And the ttv-chat-light server is active When a user has triggered a !bulb setTimer command And the user has passed a parameter that DOES NOT meet either format of HH:MM:SS or MM:SS Then ttv-chat-light shall ignore the parameter And ttv-chat-light shall communicate with the Twitch TV chat function And inform the user that an invalid parameter has been passed

Mention any other details that might be useful

This has been created and documented by Yegnaro from Twitch.

MichaelCduBois avatar Mar 13 '19 15:03 MichaelCduBois