售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Building Slack Bots
Table of Contents
Building Slack Bots
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with Slack
Introduction to Slack
Slack as a platform
The end goal
Summary
2. Your First Bot
Preparing your environment
Installing Node.js
Installing the development tools using NPM
Creating a new project
Creating a Slack API token
Connecting a bot
Joining a channel
Sending a message to a channel
The slack object
Getting all the channels
Getting all members in a channel
Sending a message to a channel
Basic responses
The authenticated event
Using the message event
Avoiding spam
Sending a direct message
Restricting access
Adding and removing admins
Debugging a bot
Summary
3. Adding Complexity
Responding to keywords
Using classes
Reactive bots
Bot commands
Sanitizing inputs
External API integration
Error handling
Summary
4. Using Data
Introduction to Redis
Installing Redis
Mac OS X
Windows
Unix
Connecting to Redis
Saving and retrieving data
Connecting bots
Dynamic storage
Hashes, lists, and sets
Hashes
Lists
Sets
Sorted sets
Best practices
Simple to-do example
Summary
5. Understanding and Responding to Natural Language
A brief introduction to natural language
Fundamentals of NLP
Tokenizers
Stemmers
String distance
Inflection
Displaying data in a natural way
When to use NLP?
Mentions
Classifiers
Using trained classifiers
Natural language generation
When should we use natural language generation?
The uncanny valley
Summary
6. Webhooks and Slash Commands
Webhooks
Incoming webhooks
Outgoing webhooks
Slash commands
In-channel and ephemeral responses
Using webhooks and slash commands
Summary
7. Publishing Your App
The Slack app directory
Registering your app and obtaining tokens
Understanding the OAuth process
Scopes
Submitting your app to the app directory
Monetizing your bot
Summary
Further reading
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜