Implement Pravda: Truth Social to Discord relay service
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m59s

- Add core modules: database (SQLite), media (ffmpeg), discord (webhook), poller (truthbrush), server (FastAPI)
- Support video transcoding to H.264/AAC with automatic size management
- Handle message splitting for Discord limits (2000 chars, 10 attachments)
- Include interactive buttons (Delete, View Raw, Original Post)
- Add Dockerfile with ffmpeg and entrypoint script
- Add Gitea Actions workflow for CI/CD
- Configure code style tools (black, ruff, mypy)
- Include basic unit tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-23 01:01:59 -05:00
parent af530372f3
commit c75856ff44
17 changed files with 1491 additions and 0 deletions

15
entrypoint.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -e
# Pravda entrypoint script
# Detects whether to run in daemon mode or one-off mode based on arguments
if [ $# -gt 0 ]; then
# One-off mode: relay a specific post URL
echo "Running in one-off mode..."
exec python main.py "$@"
else
# Daemon mode: run poller + server
echo "Running in daemon mode..."
exec python main.py
fi