{"id":16123217,"url":"https://github.com/anatawa12/discord-rcon","last_synced_at":"2025-03-18T11:31:08.828Z","repository":{"id":38332598,"uuid":"400678801","full_name":"anatawa12/discord-rcon","owner":"anatawa12","description":"The discord bot to control game servers via rcon.","archived":false,"fork":false,"pushed_at":"2023-01-20T23:18:35.000Z","size":126,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T09:17:52.162Z","etag":null,"topics":["bot","discord","discord-bot","minecraft"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anatawa12.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-28T02:02:00.000Z","updated_at":"2023-12-02T05:31:41.000Z","dependencies_parsed_at":"2023-02-12T06:30:31.157Z","dependency_job_id":null,"html_url":"https://github.com/anatawa12/discord-rcon","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatawa12%2Fdiscord-rcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatawa12%2Fdiscord-rcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatawa12%2Fdiscord-rcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatawa12%2Fdiscord-rcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anatawa12","download_url":"https://codeload.github.com/anatawa12/discord-rcon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243925562,"owners_count":20369907,"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","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":["bot","discord","discord-bot","minecraft"],"created_at":"2024-10-09T21:15:02.087Z","updated_at":"2025-03-18T11:31:04.869Z","avatar_url":"https://github.com/anatawa12.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"discord-rcon\n======\n\nThe discord bot to control game servers via rcon.\nThis bot supports Minecraft and Factorio by [rcon crate] \nbut other servers may work.\nThis bot is tested with minecraft 1.7.10.\n\n[rcon crate]: https://crates.io/crates/rcon\n\n## how to enable rcon for minecraft server\n\n\u003cdetails\u003e\n\u003csummary\u003ehow to enable rcon for minecraft server\u003c/summary\u003e\n\n1. replace `enable-rcon=false` to `enable-rcon=true` in `server.properties`\n2. add `rcon.password=PASSWORD` (please replace `PASSWORD` with password \n   you want to use) to `server.properties`\n\n\u003c/details\u003e\n\n## how to use this bot\n\n### via docker\n\nFirst, please [create config.toml]\n\nThen run following command to start the bot.\n```bash\ndocker run ghcr.io/anatawa12/discord-rcon\n```\n\n### via docker-compose\n\nYou can configure docker-compose based on [docker-compose.yml].\n\n### install via cargo\n\nRun ``cargo install discord-rcon`` to install discord-rcon.\n\nThen, please [create config.toml].\n\nFinally, run ``discord-rcon`` to start bot.\n\n## configuring this bot\n\nThis bot uses [TOML] to write configurations.\nPlease replace each values to the value you want to use.\nCommented property means optional configuration.\n\n```toml\n# the discord bot token\ntoken = \"\u003cdiscord bot token\u003e\"\n\n# the discord command prefix.\n# if the value is \"!\", \"!say hello\" executes \"say hello\" in console\n# If the value is empty, all messages posted to the channel by a person who has\n# the role will be executed.\nprefix = \"\u003ccommand prefix\u003e\"\n\n# the control command prefix.\n#command = \"\u003ccommand prefix\u003e\"\n\n# The id of role the users this bot can be used.\n# if not specified, all users can use this bot. it's dangerous\n#role = \u003crole id\u003e\n\n# The id of channel this bot will listen.\n# if not specified, all channels on guild/server the bot connected will be watched.\n#channel = \u003cchannel id\u003e\n\n# The kind of your game server.\n# This enables the some quirks for game servers.\n# currently supports Minecraft and Factorio.\n# If your game is not one of games above, you don't need to specify server_kind\n#server_kind = \"\u003cone of minecraft, factorio, or normal\u003e\"\n\n# The section about rcon connection\n[rcon]\n# the address of rcon server.\naddress = \"\u003cserver ip\u003e:\u003cport\u003e\"\n# the password of rcon server.\npass = \"\u003cpassword\u003e\"\n```\n\n[create config.toml]: #configuring-this-bot\n[docker-compose.yml]: docker-compose.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanatawa12%2Fdiscord-rcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanatawa12%2Fdiscord-rcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanatawa12%2Fdiscord-rcon/lists"}