const response = require('../lib/responseHelper');

module.exports = (app) => {
  app.post('/chekt', (req, res) => {
  	const chekt = req.body.text || 'rekt';
    const text = "\n[   ] not ${chekt}    [✓] ${chekt}";

    const payload = {
      channel: req.channel,
      icon_emoji: ':grimacing:',
      text: text,
    };

    response(payload, app, res);
  });
};

const response = require('../lib/responseHelper');

module.exports = (app) => {
  app.post('/chekt', (req, res) => {
    const chekt = req.body.text || 'rekt';
    const text = `\n[ ] not ${chekt}    [✓] ${chekt}`;

    const payload = {
      channel: req.channel,
      icon_emoji: ':grimacing:',
      text: text,
    };

    response(payload, app, res);
  });
};

fix lint errors