Open nikgraf opened 7 years ago
Hi! I'd love to work on this : ) I've built 5+ HipChat integrations for my team over the past couple weeks and put this up: https://github.com/FLGMwt/serverless-csharp-hipchat
I've been working with C# and HipChat, but I'd be happy to port this to all the supported runtimes as well as to Slack (the integration model is almost identical).
Any update on this?
@FLGMwt sure, wanna submit a simple example with a Readme similar to the existing ones?
Sure! I'll jump on this during the upcoming weekend.
It's quite easy to make a bot, you respond to the event and build some text and make a request, for example:
const fetch = require('node-fetch')
const FormData = require('form-data')
const form = new FormData()
form.append('payload', JSON.stringify({ channel: '#mychannel', username: 'lambdabot', text: text, icon_emoji: ':movie_camera:' }))
fetch('https://hooks.slack.com/services/API/KEY', { method: 'POST', body: form })
.then(r => callback(null, r.statusText), callback)
I already have one bot which I worked on with Readme. its not complex and can easily be shared if no one else is working or has worked on it. I am more than happy to share with team for review. Let me know. and as mention by @kaihendry yes its super easy to develop slack bot.
Let us know if you interested to work on this. I comment here if one of the core-team is starting to work on it.