Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Building Slack Bots

You're reading from   Building Slack Bots Create powerful, useful, fast, and fun chat bots that make Slack better

Arrow left icon
Product type Paperback
Published in Jun 2016
Publisher Packt
ISBN-13 9781786460806
Length 182 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Paul Asjes Paul Asjes
Author Profile Icon Paul Asjes
Paul Asjes
Arrow right icon
View More author details
Toc

Registering your app and obtaining tokens


Certain unique tokens are required in order to successfully authenticate with Slack's OAuth servers. This is necessary so that Slack can determine whether we are who we say we are and whether our app or bot is actually integrated with the team we are attempting to get access to.

We start by navigating to the Slack new app registration page at https://api.slack.com/applications/new. Fill out the form by picking a name for your bot, the team it originated from, descriptions of your bot, links to help pages, and a redirect URI:

Be as descriptive as you can when filling out this form

After saving your settings, you can choose to set up a bot user, webhook, or slash command. For Wikibot, we will be setting up a bot user.

If your specified username is taken, Slack will edit it slightly to avoid conflicts

Once you've saved your changes, you should be presented with OAuth information on the next screen. First, make sure to save the Client ID and Client Secret...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images