open https://github.com/howdyai/botkit-starter-slack
open openshift.com
open https://api.slack.com
- create a new bot
- copy
Client ID
andClient Secret
for.env
file. - setup oAuth redirect url
http://ocd-slackbot-uniqkey-slackbot.e4ff.pro-eu-west-1.openshiftapps.com/oauth
- add a bot user with always logged in
- setup event subscriptions
http://ocd-slackbot-uniqkey-slackbot.e4ff.pro-eu-west-1.openshiftapps.comm/slack/receive
message.channels
message.groups
message.im
message.mpim
open .env
for editing to add Client ID
and Client Secret
and also set port to 8080
from api.slack.com
invite it to a room direct message it with "what is on my todo list today?"
go to "Incoming Webhooks" and activate inbound webhooks on your workspace, it will ask you which channel to post the text into, then you a curl command like:
curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/TyyyyyyyJH/BFxxxxxx0Q/30tHrvvvvvvvvv5Qq97yFk