Skip to content

Amazebot/bbot-slack-message-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bBot-Slack Message Adapter

npm version

Chat adapter for connecting bBot to Slack.

~(O_O)~

Visit bBot.chat for info on the conversation engine.

Connecting to Slack

Docs TBD...

While in development, please see the Hubot guide. bBot architecture is very similar and for the purpose of setting up the App and Bot User on your Slack workspace, those instructions are fine.

Configuring the bot

BOT_SLACK_USER_TOKEN=YOUR_TOKEN
BOT_SLACK_USER_SYNC=true # default is false (enable only for small workspaces)

These options can also be given as CLI args like --slack-user-sync true or as attributes in package.json under "bot" like "slack-user-sync": true.

Contributing

This adapter is in development to provide MVP utility and needs to be matured with more "real world" experience. If you're using Slack in production with more advanced requirements, like custom actions or payloads, please report an issue to describe your usage and requirements, so we might improve it together.

Running Tests

For questions about testing Slack Apps and Bot Users, see the Slack FAQ

BEWARE: Currently tests run with the same token and workspace configured for the LIVE bot, as stubs and mock responses haven't yet been developed.

While in active development, I recommend working on and running tests for one method at a time, using grep for the method name, e.g:

mocha test/client.spec.ts --grep loadUsers

About

Chat adapter for connecting bBot to Slack.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published