Last active
April 30, 2016 22:07
-
-
Save ilkereroglu/5a55dc0ce54b973902f7ae4e11fb8136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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