Skip to content

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

Notifications You must be signed in to change notification settings

kozlice/slack-webm-sentinel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published