A discord bot that automatically downloads streamable clips posted to a text channel.
The bot automatically looks for streamable links in all text channels it has access to.
If a link is found, the clips is downloaded to the clips folder (/app/clips
).
The app is available via Docker.
You need to get a Bot token from the Discord Developer Portal. To get one, go to the portal, add an application, go to the bot tab, create a bot and copy the token. Also check the box for "Message Content Intent" under priviledged intents (otherwise the bot cannot extract the links from your messages). Then, you can run the bot:
docker run -e DISCORD_TOKEN=<token> -v ./clips:/app/clips ghcr.io/dominikks/discord-streamable-bot
Clips are saved under /app/clips
in the container, so feel free to mount that somewhere.
By default, the app runs with UID 1000, so make sure the mounted folder is owned by a user with that UID (e.g. chown 1000 ./clips
).
To add the bot to your Discord server, you can use the following link. You can get the client id from the "General Information" tab of your application in the Discord Developer Portal.
https://discordapp.com/oauth2/authorize?client_id=<client_id>&scope=bot&permissions=2112
Congratulations! Your bot is now active in your server and searchs for streamable links in all text channels it has access to.
You need to have the rust toolchain. Then, simply execute
DISCORD_TOKEN=<token> cargo run
to run the app.