This is a bot for aiding with [ROO]'s Shiny War events.
This is an app that will schedule a challenge every challengeInterval
(for example, every 1 minute). The challenges won't be scheduled after the endDate
. Challenges can be marked as complete by a user issuing the !challenge complete {teamName}
command. The bot will then mark the challenge as complete, attribute the team with the completion, and schedule the next challenge within the next challenge window.
- Load's the application's state
- The shape is an array of objects of this shape
{ "challengeText": "Challenge 1", "timeCompleted": null, "timeSent": null, "challengeWonBy": null, "timeToComplete": null}
- The shape is an array of objects of this shape
- After the bot receives a message that starts with
!challenge start
, it will:- Schedule the first challenge
- When a challenge has been issued, the bot will:
- Listen for a message that starts with
!challenge complete {teamName}
- Will mark the challenge as complete,
- attribute the team with the completion
- save the application's state
- schedule the next challenge within the next challenge window.
- Listen for a message that starts with