This repository is the meat of the courtbot functionality, intended to be require'd by a project that wants to implement courtbot.
In order to store and retreive registrations and sent-messages a registration source must be configured. The easiest way to do that is to use https://github.com/codefortulsa/courtbot-engine-pg to fill this role.
Example code to fulfill this requirement:
var courtbot = ;courtbot;
For courtbot to talk to someone via a communication method, you have to add that method. The following methods exist:
The following example adds the necessary routes to your express app:
To enable the console prompt in a local courbot instance, set the environment variable USE_CONSOLE=1. This will allow you to communicate with courtbot without using twilio.
The following functions should be run on a regular basis, at least once per day:
sendDueReminders(options)- Sends reminders for cases that are within the reminder period.
checkMissingCases(options)- Looks for cases that were not initially found.