Skip to content

Instantly share code, notes, and snippets.

@ilkereroglu
Last active April 30, 2016 22:07
Show Gist options
  • Save ilkereroglu/5a55dc0ce54b973902f7ae4e11fb8136 to your computer and use it in GitHub Desktop.
Save ilkereroglu/5a55dc0ce54b973902f7ae4e11fb8136 to your computer and use it in GitHub Desktop.
app.post('/selam', function (req, res, next) {
var userName = req.body.user_name;
var bot = {
text : userName + 'Ooo cahil bey hoşgeldiniz.'
};
if (userName !== 'slackbot') {
return res.status(200).json(bot);
} else {
return res.status(200).end();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment