slack-command-handler.js 318 B

123456789101112131415
  1. // Any slack command handler should inherit BaseSlackCommandHandler
  2. class BaseSlackCommandHandler {
  3. constructor(crowi) {
  4. this.crowi = crowi;
  5. }
  6. /**
  7. * Handle /commands endpoint
  8. */
  9. handleCommand(client, body, ...opt) { throw new Error('Implement this') }
  10. }
  11. module.exports = BaseSlackCommandHandler;