To set the Slackbot to send notifications, you’ll need to create a Slack app and configure it:
1. Create a Slack app, if you don't have one already
https://api.slack.com/apps/new
Pick a name, then choose a workspace with which to associate your app. (Bear in mind that the app will probably be posting lots of messages, so you might want to create a channel for sandbox use.) Once that’s done, click Create App.
2. Enable Incoming Webhooks
After creating the app, you'll be redirected to the Settings page for your new app. (If you are using an existing app, just load its settings via your app's management dashboard here https://api.slack.com/apps.)
From the Settings page, select the Incoming Webhooks feature, and click the Activate Incoming Webhooks toggle to switch it on.
3. Create an Incoming Webhook
Now that Incoming Webhooks are enabled, the Settings page should refresh and some extra options will appear. One of those options will be a really helpful button marked Add New Webhook to Workspace. Click it.
This button triggers a shortcut version of the installation flow for Slack apps. It is completely self-contained, so you don't have to actually build any code to generate an Incoming Webhook URL.
Go ahead and pick a channel where the app will post, and then click to authorize your app. If you need to add the Incoming Webhook to a private channel, you must first be in that channel.
You'll then be sent back to your app settings, and you should now see a new entry under the Webhook URLs for Your Workspace section, with a Webhook URL that'll look something like this:
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
4. Use your Incoming Webhook URL to set up the HackNotice Bot
-Go to the HackNotice website https://app.hacknotice.com/
-Go into Business > Account > Account
-Put your Webhook URL inside SlackBot Webhook
-Click Submit
Comments
0 comments
Please sign in to leave a comment.