adryd325 / discord-twitter-video-embeds

A Discord bot that fixes broken Twitter, TikTok and Reddit Embeds. This repository is archved in a BROKEN STATE. I'm uninterested in continuing to maintain it.
https://adryd.co/twitter-embeds
MIT License
82 stars 10 forks source link

Add docker support for self-hosting #7

Closed Ratismal closed 2 years ago

Ratismal commented 2 years ago

With the frustrating news of this bot being sunset, I put together docker support for the bot. This will allow users who wish to self-host a less intrusive means of setting up an instance.

General use:

# Bring the bot up
docker-compose up -d
# Rebuild the bot (ex. apply any local changes)
docker-compose build
# Stop the bot
docker-compose stop
# Take down the containers of the bot
docker-compose down
# View logs
docker-compose logs -f bot

Configuration (ex. bot token) with this method is done via .env file, that should not be committed. I have provided an example .env.example file to use as a reference, but it's essentially just the environment variables defined in debian-11-quick-setup.sh.

If you have any other questions, feel free to ask.

And I just want to add, I completely feel your pain with not getting approved for intents. The verification system is so obtuse. It's ridiculous that this bot didn't get approved.

adryd325 commented 2 years ago

tysm!! gotta add the dep for yt-dlp since im too busy to write a full tiktok client myself, but that should be easy