Add Timer to Bulb Commands
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 setTimercommand 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 userScenario 2: MM:SS Given that Clarkio is streaming on TwitchTV And ttv-chat-light service is active When a user has triggered a
!bulb setTimercommand 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 userScenario 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 setTimercommand 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.