kozlice / slack-webm-sentinel

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

docker run \
  --mount type=volume,target=/tmp \
  -e SLACK_API_TOKEN=xoxb-... \ 
  kozlice/slack-webm-sentinel

About

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


Languages

Language:Go 92.2%Language:Dockerfile 7.8%