1.0.3 • Published 2 years ago
deesha-slack v1.0.3
Slack API - Node CLI
Steps to get started
In terminal
npm install -g deesha-slack
export SLACK_BOT_TOKEN = "your slack bot token here"
onboard all of these bot token spokes in Slack
- channels:history
- channels:manage
- chat:write
- chat:write.public
- groups:history
- groups:write
- im:history
- im:write
- incoming-webhook
- mpim:history
- mpim:write
- users.profile:read
- users:read
Supported API
broadcast Broadcast message to a channel using WebHook API to only Test API sendMessage Broadcast message to a channel using internal Slack API getConversation options Get recent conversations from channel; default limit is 5 override the default by -n getAllUsers get all Users in workplace getUser get info of speific user help command display help for command
Referenced Articles
Creating a CLI tool with Node.js : https://blog.logrocket.com/creating-a-cli-tool-with-node-js/
Slack API documentation : https://slack.dev/bolt-js/tutorial/getting-started#create-an-app