hello pybot
TRANSCRIPT
Hello PyBotPython Chat Bots for Slack
github.com/jeffk/PyBot
Jeff Kramer (@jeffk) ~ Data Infrastructure @ Vox Media
A Teeny Bit of …
• Everything Old is New Again
• Conversational Interfaces
• IRC & Eggdrop
• MUDs & MOOs
• SmarterChild
• Campfire, HipChat
Slack I/O Methods• Incoming Webhooks
• Unique URLs • JSON Payloads • Custom Names/Icons/Chan
• Outgoing Webhooks • Channel and/or Trigger Words
(Public-Only) • HTTP Post, JSON Resp
• Slash Commands • Only Return Text to User
• Web API (OAUTH, HTTP RPC) • IRC/XMPP/LOL/SOB
The Slack Real Time Messaging API
• WebSockets
• Used by all Slack Clients
• Pushed All Messages in All Channels
• Commonly Used with Bot Users
• Can’t Join Channels
• Always Active (Unless set)
Frameworks & Wrappers
• python-rtmbot
• Uses SlackClient
• Supports Plugins
• api.slack.com/community#python
• err - Popular Chatbot w/Slack Support
• butterfield - Uses asyncio
• slacker - Popular Wrapper
Resources
Ben Brown, Eric Soelzer & XOXCO - Your Friendly Robot Companions (Refresh Austin)
ATX Bot Talk - October 21st - atxbots.splashthat.com
github.com/slackhq/python-slackclient & python-rtmbot
Work@Vox! bit.ly/voxdatascience & bit.ly/voxdataengineering
@jeffk
jeffkramer.com
github.com/jeffk/PyBot
dev4slack.xoxco.com
api.slack.com/web
api.slack.com/community