How servicenowdevprogram/slackerbot works
SlackerBot receives Slack events in ServiceNow, records incoming messages, selects a matching parser, and sends responses back to Slack. The parser collection spans lightweight community and entertainment replies, information lookups, administrative actions, and integrations such as GitHub issue creation; quiz buttons have a separate interaction handler. The README also documents GitHub-to-ServiceNow parser synchronization. Core ServiceNow scripts and tables are described but absent from the supplied tree, so their paths are left unspecified; the visible parser excerpts establish their own external lookups and Slack replies.
Main entry points: Find a book.js Book lookup · News Article Parser.js News lookup · Create a GitHub issue.js Issue reporter · Handle an SN quiz.js Quiz interaction
Components 20
Slack ingress
- Event handler
- Payload records
Parser runtime
- Parser records
- Parser dispatch
Parser capabilities
- Parser scripts
Parsers - Quiz interaction
Interaction/Handle an SN quiz.js - Book lookup
Parsers/Find a book.js - News lookup
Parsers/News Article Parser.js - Search links
Parsers/Search Wikipedia.js - Issue reporter
Parsers/Create a GitHub issue.js - Privacy response
Parsers/SlackerBot Privacy Management.js - Community replies
Parsers/Link to all ServiceNow Developer Meetups.js - Fun replies
Parsers/Tell a Random Joke.js - Product name generator
Parsers/Generate a ServiceNow Product name.js
External services
- Slack API
- OpenLibrary
- News API
- GitHub API
- GitHub sync API
Other components
- Slack user
Connections 19
- Slack user → Event handler: sends events
- Event handler → Payload records: records messages
- Payload records → Parser dispatch: triggers parsing
- Parser dispatch → Parser records: matches parser
- Parser dispatch → Parser scripts: runs parser
- Quiz interaction → Slack API: updates and replies
- Book lookup → OpenLibrary: queries books
- Book lookup → Slack API: sends results
- News lookup → News API: queries articles
- News lookup → Slack API: sends results
- Search links → Slack API: sends search link
- Issue reporter → GitHub API: creates issue
- Issue reporter → Slack API: sends status
- Privacy response → Slack API: sends notice
- Community replies → Slack API: sends reply
- Fun replies → Slack API: sends reply
- Product name generator → Slack API: sends name
- GitHub sync API → GitHub API: reads parsers
- GitHub sync API → Parser records: syncs records