Automatic moderator for adult Telegram channel, now with dokku deployment
- Install dokku on your VPS
- Install dokku redis plugin
- Create Redis base with
dokku redis:create booba
- Create an app and link it with Redis by
dokku redis:link booba <YOUR_APP>
- Push this repo for your app
- Add SSL cert with dokku-letsencrypt
- Add webhook using this guide (endpoint should be https://your-hosting/your-token)
- Set some vars:
TG_CHAT
- numeric ID of chatDANBOORU_API_KEY
- your gold account danbooru API keyDANBOORU_LOGIN
- your danbooru loginDOKKU_LETSENCRYPT_EMAIL
- your let's encrypt emailTG_TOKEN
- your bot token
- You should restart app with
dokku ps:restart <YOUR_APP>
every day to rebuild cache (don't worry, bot will be up during restart, new container will replace old after building cache) - You could post into
TG_CHAT
channel withdocker exec <YOUR_APP>.web.1 /app/sigusr1.sh
- First start will take about 2 minutes