{"id":22557997,"url":"https://github.com/jd-apprentice/linux-bot","last_synced_at":"2025-08-02T15:33:47.932Z","repository":{"id":243461005,"uuid":"812498824","full_name":"jd-apprentice/linux-bot","owner":"jd-apprentice","description":"🤖 Discord bot to execute commands on linux machines","archived":false,"fork":false,"pushed_at":"2024-07-02T00:51:14.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-07-28T23:51:54.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jd-apprentice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-06-09T04:18:12.000Z","updated_at":"2025-07-22T16:12:40.000Z","dependencies_parsed_at":"2024-06-19T04:48:20.077Z","dependency_job_id":null,"html_url":"https://github.com/jd-apprentice/linux-bot","commit_stats":null,"previous_names":["jd-apprentice/linux-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jd-apprentice/linux-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Flinux-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Flinux-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Flinux-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Flinux-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jd-apprentice","download_url":"https://codeload.github.com/jd-apprentice/linux-bot/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Flinux-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268411190,"owners_count":24246192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-07T20:10:33.612Z","updated_at":"2025-08-02T15:33:47.886Z","avatar_url":"https://github.com/jd-apprentice.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐧 Executor\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"500\" height=\"500\" src=\"assets/logo.png\"\u003e\n\u003c/p\u003e\n\nExecutor is a discord bot that allows you to execute code in your linux terminal from discord. It is written in javascript and uses the discord.js library.\n\nIntended to be used with the [Turso](https://turso.tech/), [Bun](https://bun.sh/) and ARM64 architecture.\n\n## 🧰 Requirements\n\n- Bun\n- Docker\n- Turso\n\n## 💾 Instalation\n\nMake sure to complete the `.env` file with the following information:\n\n| Variable | Description |\n| --- | --- |\n| DISCORD_TOKEN | Discord bot token |\n| TURSO_URL | Turso url |\n| TURSO_DB_TOKEN | Turso db token |\n\nSimple way to install is to simply run the following command:\n\n```bash\ngit clone https://github.com/jd-apprentice/linux-bot \u0026\u0026 cd linux-bot\nmake\n```\n\nMore manual way:\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/jd-apprentice/linux-bot \u0026\u0026 cd linux-bot\n```\n\n2. Prepare the binary\n\n```bash\nbun install\nbun run build ## For x86_64\nbun run build:arm ## For arm\n```\n\n3. Build the image manually\n\n```bash\ndocker build -f docker/base-arm64.Dockerfile -t executor_bin .\ndocker build -f docker/app.Dockerfile -t executor .\ndocker compose up -d\n```\n\n4. Verify that the bot is running\n\n```bash\ndocker ps  \nCONTAINER ID   IMAGE      COMMAND            CREATED          STATUS          PORTS     NAMES\nf2cc56458304   executor   \"/base/executor\"   48 minutes ago   Up 30 minutes             linux-bot-executor-1\n```\n\n5. Use the binary instead of the docker image\n\n```bash\nscp lib/executor_arm64 \u003cuser\u003e@\u003chost\u003e:\u003cpath\u003e\n./executor_arm64 \u0026\n```\n\n## 📊 Stats\n\n```shell\nps aux | grep executor\n\ndyallo   2457823  0.3  4.6 74741276 19836 ?      Sl   14:44   0:04 ./executor_arm64\ndyallo   2475353  0.0  0.1   6012   644 pts/1    S+   15:07   0:00 grep --color=auto executor\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-apprentice%2Flinux-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd-apprentice%2Flinux-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-apprentice%2Flinux-bot/lists"}