{"id":28382812,"url":"https://github.com/danirukun/rustplus-commander","last_synced_at":"2025-07-28T11:06:41.151Z","repository":{"id":93072836,"uuid":"534365131","full_name":"DaniruKun/rustplus-commander","owner":"DaniruKun","description":"Control Rust devices using the chat, and get various server info.","archived":false,"fork":false,"pushed_at":"2022-09-11T16:14:39.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T07:43:31.181Z","etag":null,"topics":["python","rust-game"],"latest_commit_sha":null,"homepage":"","language":"Python","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/DaniruKun.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}},"created_at":"2022-09-08T19:32:07.000Z","updated_at":"2022-09-10T11:35:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8820ee5-cbb2-4f3b-8719-b1888077bf10","html_url":"https://github.com/DaniruKun/rustplus-commander","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DaniruKun/rustplus-commander","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaniruKun%2Frustplus-commander","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaniruKun%2Frustplus-commander/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaniruKun%2Frustplus-commander/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaniruKun%2Frustplus-commander/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaniruKun","download_url":"https://codeload.github.com/DaniruKun/rustplus-commander/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaniruKun%2Frustplus-commander/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267505099,"owners_count":24098346,"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-07-28T02:00:09.689Z","response_time":68,"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":["python","rust-game"],"created_at":"2025-05-30T04:39:20.602Z","updated_at":"2025-07-28T11:06:41.134Z","avatar_url":"https://github.com/DaniruKun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"- [About](#about)\n\t- [How it works](#how-it-works)\n\t- [Requirements](#requirements)\n\t- [Running](#running)\n\t- [Usage](#usage)\n\n# About\n\nRustPlus Commander is a small Python app that allows you to control smart devices in the video game [Rust](https://rust.facepunch.com) using the team chat, as well as query various server info.\nIt is built on top of [Rust+.py](https://rplus.ollieee.xyz)\n\n## How it works\n\nRustPlus Commander connects to the WebSocket on your Rust server, and continously exchanges messages with it.\n\n```mermaid\nsequenceDiagram\n\t\tautonumber\n\t\tparticipant CMDR as RustPlusCommander\n\t\tparticipant WS as Websocket\n\n\t\tCMDR-\u003e\u003eWS: Connect\n\t\tloop\n    WS--\u003e\u003eCMDR: Event\n\t\tCMDR-\u003e\u003eWS: Send team message\n\t\tend\n\t\tCMDR-\u003e\u003eWS: disconnect\n```\n\n## Requirements\n\n- Python 3.6+\n- SQLite\n- A Steam account (and of course a copy of Rust)\n- Be part of an active Team\n\nYou will need to set these environment variables:\n\n- `RUST_SERVER_IP`: hostname or IP address of the target Rust server\n- `RUST_SERVER_PORT`: Rust+ server port, `28079` by default, you can find it in the FCM notification payload, see below\n- `STEAM_ID`: your Steam user ID\n- `RUST_PLAYER_TOKEN`: token used for authenticating you with Rust servers, read below\n- `RESP_PREFIX`: set custom prefix for messages sent by the commander in chat\n\nHow to get your Rust player token: \u003chttps://github.com/liamcottle/rustplus.js#using-the-command-line-tool\u003e\n\n## Running\n\n```bash\npip install -r requirements.txt\npython main.py\n```\n\n## Usage\n\nIn the team chat (either in game or in the Rust+ app), type:\n\n```\n!ping\n!register somelight \u003centityid\u003e\n!turn_on somelight\n```\n\n`entityid` is a unique ID of every entity on the server. It can easily be found by interacting with one (e.g. hitting it) and checking `combatlog` using the F1 console.\nThe entities are persisted in a local SQLite DB, which will always be recreated if it is missing.\n\nFull list of commands:\n\n- `!ping` pings the Commander, if succesful will respond with a pong\n- `!register \u003cname\u003e \u003centity_id\u003e` - registers a device with a human `name` that has entity ID `entity_id`, no spaces in names allowed\n- `!turn_on \u003cname\u003e` - turns on a device with name `name`\n- `!turn_off \u003cname\u003e` - turns off a device with name `name`\n- `!list_devices` - list all registered devices\n- `!players` - shows the current number of online players\n- `!time` - prints the current server time\n- `!whoami` - get information about yourself\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanirukun%2Frustplus-commander","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanirukun%2Frustplus-commander","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanirukun%2Frustplus-commander/lists"}