https://github.com/030/sasm
Send A Slack Message (SASM).
https://github.com/030/sasm
Last synced: 4 months ago
JSON representation
Send A Slack Message (SASM).
- Host: GitHub
- URL: https://github.com/030/sasm
- Owner: 030
- License: mit
- Created: 2021-06-05T21:25:53.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-02T08:22:36.000Z (over 4 years ago)
- Last Synced: 2025-10-20T08:01:02.271Z (8 months ago)
- Language: Go
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# SASM
Send A Slack Message (SASM).
## Create an App, Channel and Slack token
* Navigate to [Your Apps](https://api.slack.com/apps)
* Click on `Create New App`
* `From scratch`
* Choose an `App Name`
* `Pick a workspace to develop your app in`
* `Create App`
* Add features and functionality: `Permissions`
* Add an OAuth Scope in the `Bot Token Scopes`: `chat:write`
* `Install to Workspace`
* Create a channel and invite the bot
* Navigate to [Your Apps](https://api.slack.com/apps) again
* Click on app that you created
* Click on `OAuth & Permissions`
* Copy `Bot User OAuth Token`
## Configure sasm
Create a directory:
```bash
mkdir ~/.sasm
```
Create a config file:
```bash
vim ~/.sasm/config.yml
```
Add a Slack token:
```bash
---
slack_channel: someSlackChannelID-clickOnChannelAndCopyTheID
slack_token: someSlackToken
```
Save the file. Update the permissions to ensure that you are the
only one that is able to read and write to the config file:
```bash
chmod 0600 ~/.sasm/config.yml
```
## Troubleshooting
```bash
FATA[0000] channel_not_found
```
Add the created bot to the channel by inviting it.