Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

A bot that tracks .webm links and converts them to .mp4

Awesome Lists containing this project

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
    ```