{"id":49987878,"url":"https://github.com/redpeacock78/tw-dl-bot","last_synced_at":"2026-05-19T01:07:07.159Z","repository":{"id":191189648,"uuid":"684111863","full_name":"redpeacock78/tw-dl-bot","owner":"redpeacock78","description":"Discord bot to download Twitter videos via Slash Commands","archived":false,"fork":false,"pushed_at":"2026-05-09T07:17:44.000Z","size":479,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-09T07:21:27.125Z","etag":null,"topics":["automation","deno","discord","discord-bot","docker","githib-actions","hono","twitter","twitter-downloader","typescript","yt-dlp"],"latest_commit_sha":null,"homepage":"https://discord.com/api/oauth2/authorize?client_id=1145620099332579399\u0026permissions=1067299887168\u0026scope=bot","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redpeacock78.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-28T13:33:11.000Z","updated_at":"2026-05-09T07:17:46.000Z","dependencies_parsed_at":"2023-08-28T17:32:22.584Z","dependency_job_id":"8b2acee1-9a2f-4bab-b3d4-2d0cec53f310","html_url":"https://github.com/redpeacock78/tw-dl-bot","commit_stats":null,"previous_names":["redpeacock78/tw-dl-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redpeacock78/tw-dl-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redpeacock78%2Ftw-dl-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redpeacock78%2Ftw-dl-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redpeacock78%2Ftw-dl-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redpeacock78%2Ftw-dl-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redpeacock78","download_url":"https://codeload.github.com/redpeacock78/tw-dl-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redpeacock78%2Ftw-dl-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33197524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","deno","discord","discord-bot","docker","githib-actions","hono","twitter","twitter-downloader","typescript","yt-dlp"],"created_at":"2026-05-19T01:07:06.550Z","updated_at":"2026-05-19T01:07:07.147Z","avatar_url":"https://github.com/redpeacock78.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tw-dl-bot\n\n[![DeepWiki](https://img.shields.io/badge/DeepWiki-redpeacock78%2Ftw--dl--bot-blue.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAyCAYAAAAnWDnqAAAAAXNSR0IArs4c6QAAA05JREFUaEPtmUtyEzEQhtWTQyQLHNak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aoqr+27/XcrS5UwSMbQAAAABJRU5ErkJggg==)](https://deepwiki.com/redpeacock78/tw-dl-bot) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/redpeacock78/tw-dl-bot) [![codecov](https://codecov.io/gh/redpeacock78/tw-dl-bot/branch/master/graph/badge.svg)](https://codecov.io/gh/redpeacock78/tw-dl-bot)  \n\nA **Discord bot for downloading videos from Tweets**.  \nUsing Slash Commands (like `/dl`), you can send Tweet URLs to the bot, and it will trigger a GitHub Actions workflow to fetch the video and reply with the result directly in Discord.\n\n---\n\n## Features\n\n- **Discord Slash Commands** support\n- Download single or multiple Tweet videos\n- Live progress updates: progress, success, and failure notifications\n- Asynchronous video processing powered by **GitHub Actions**\n- Built with **Deno + TypeScript**\n\n---\n\n## Tech Stack\n\n- [Deno](https://deno.land/) + TypeScript\n- [discordeno](https://deno.land/x/discordeno)  \n- [Hono](https://hono.dev/) for lightweight web routing\n- [Deno test](https://docs.deno.com/runtime/fundamentals/testing/) + [`@std/assert`](https://jsr.io/@std/assert) for the test suite\n- GitHub Actions + Docker for background jobs\n- yt-dlp for video downloading\n\n---\n\n## Setup\n\n### 1. Environment Variables\n\nMake sure these environment variables are set:\n\n- `DISCORD_TOKEN` – Discord Bot Token\n- `DISPATCH_URL` – `repository_dispatch` endpoint of your GitHub repository\n- `GITHUB_TOKEN` – GitHub Personal Access Token (for triggering Actions)\n\n### 2. Run in Development\n\n```bash\ndeno task dev\n````\n\n### 3. Build Executable\n\n```bash\ndeno task build\n```\n\n---\n\n## Slash Commands\n\n* `/dl url:\u003cTweet URL\u003e`\n  Downloads one or more Tweet videos (space-separated URLs supported)\n* `/dl-spoiler url:\u003cTweet URL\u003e`\n  Same as `/dl`, but the resulting file is uploaded as a Discord spoiler attachment\n* `/threaddl name:\u003cThread Name\u003e`\n  Opens a Modal where you paste any number of Tweet URLs (one per line, or any combination of newlines / spaces / commas / semicolons), creates a thread with the given name, and posts each download result inside it; URLs are processed in parallel by a GitHub Actions matrix workflow\n* `/threaddl-spoiler name:\u003cThread Name\u003e`\n  Same as `/threaddl`, but every resulting file is uploaded with the `SPOILER_` prefix\n\nSee [`docs/commands.md`](./docs/commands.md) for the full command reference.\n\n---\n\n## Workflow\n\n1. You run a Slash Command on Discord\n2. The bot triggers a **repository\\_dispatch** event in GitHub Actions\n3. A Docker container uses yt-dlp to download the video\n4. The result (video or error) is sent back to Discord\n\n---\n\n## Development Helpers\n\n* `deno lint`\n  Run code and text linting\n* `deno task run`\n  Start the bot locally\n* `deno task test` / `deno task test:coverage`\n  Run the Deno test suite (with optional coverage report) under `tests/`\n* `docker/Dockerfile`\n  Defines the video processing runner image, shared by `run.yml` and `run-thread.yml`\n\n---\n\n## Documentation\n\nIn-depth documentation lives under [`docs/`](./docs/):\n\n* [`docs/architecture.md`](./docs/architecture.md) — system overview and data flow\n* [`docs/commands.md`](./docs/commands.md) — slash command reference\n* [`docs/development.md`](./docs/development.md) — local setup, env vars, GitHub token scopes\n* [`docs/deployment.md`](./docs/deployment.md) — runner image and bot deployment\n* [`docs/github-actions.md`](./docs/github-actions.md) — `repository_dispatch` payload, callback API, secrets\n\n日本語版ドキュメントは [`docs/jp/`](./docs/jp/) を参照してください。\n\n---\n\n## License\n\nThis project is licensed under the [MIT License](./LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredpeacock78%2Ftw-dl-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredpeacock78%2Ftw-dl-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredpeacock78%2Ftw-dl-bot/lists"}