A queue for tracking users who need debugging help with per-channel management.
Add lita-debug-queue to your Lita instance's Gemfile:
gem "lita-debug-queue"lita-debug-queue expects four things to be present for correct operation:
-
An
:instructorsauthorization group containing admin users. If you want TAs to also be able to modify (but not clear) the queue you should add them to an:assistantsgroup. The Slack admin can message Ironbot to add users to an authorization group as follows:auth add nick.name instructors. Note that the Slack admin IDs should be set in thelita_config.rbfile for your bot. You can look up a users Id withusers find nick.name. -
A
debug_queue.classroomsconfig option containing a Hash that maps instructor mention nam es to classroom channels. -
A
debug_queue.scheduleconfig option containing a Hash that maps from days of the week (as fromDateTime.now.strftime("%a")), to ranges of hours in the server's time zone. -
A
debug_api.passphraseconfig option which is just a static string. A way to disable the API will be available in a future release.
debug me- Put your name in the queue for debugging help.debug nvm- Remove your name from the queue for debugging help.debug queue- Show the current queue for your class.debug count- Count the number of people waiting for help.
debug next- Notify the next student to be helped.debug drop NAME- Remove the student with NAME from the queue.debug clear- Empty the queue.
Better docs coming soon. ... Ish.
AUTH: Every request to the API must include a Query Param ?passphrase=FOO. Check with your local debug queue admin.``
In the event that an invalid room is supplied or incorrect authorization is provided,
a JSON object containing an error key will be returned.
All correct API requests will result in a response with queue and message keys.
GET /api/:classroom/queue
PUT /api/:classroom/queue
DELETE /api/:classroom/drop
PARAMS: Drop requires a student query param with the mention name of the student to be removed from the queue.
DELETE /api/:classroom/clear