Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kozlice/slack-webm-sentinel
A bot that tracks .webm links and converts them to .mp4
https://github.com/kozlice/slack-webm-sentinel
Last synced: 22 days ago
JSON representation
A bot that tracks .webm links and converts them to .mp4
- Host: GitHub
- URL: https://github.com/kozlice/slack-webm-sentinel
- Owner: kozlice
- Created: 2020-01-06T18:35:27.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-29T20:44:27.000Z (almost 5 years ago)
- Last Synced: 2024-08-05T17:25:35.887Z (4 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - kozlice/slack-webm-sentinel - A bot that tracks .webm links and converts them to .mp4 (Go)
README
# Slack webm sentinel
Slack doesn't have an inline player for .webm links.
This bot fixes the problem: it tracks .webm links in messages, downloads them, converts into .mp4 and posts them back
into the channel.### Configuration
Done via env variables:
|Name|Required?|Description|
|---|---|---|
|`SLACK_API_TOKEN`|Yes|Bot access token (starts with `xoxb-...`)|
|`NOTIFY_MODE` |No |How to let users know about bot activity. Can be one of:
- `reaction` - default, will add emoji to a message with link)
- `message` - will post a message when it finds URL
- `none` - do not notify |
|`DEBUG` |No |Will set logging level to debug|
|`TEMP_DIR` |No |Will be used for downloads and video converting. Bot removes them after link is handled. Default is `/tmp`|
### Run in Docker
```shell script
docker run \
--mount type=volume,target=/tmp \
-e SLACK_API_TOKEN=xoxb-... \
kozlice/slack-webm-sentinel
```