Valour Bot Planet Joiner is a minimal .NET 8 application that authenticates with the Valour.gg API using a bot token and joins a specified planet automatically.
Environment variables are loaded using DotNetEnv, allowing secure
configuration via a .env file.
- Bot authentication via token
- Planet join via Planet ID
- Optional invite code support
- Graceful error handling
- Async .NET implementation
- Loads environment variables from a
.envfile - Reads the
TOKENbot token - Initializes
ValourClientwithhttps://api.valour.gg - Authenticates the bot
- Attempts to join the specified planet
- Outputs result to the console
- .NET 8+
- Valid Valour bot token
- Planet ID
git clone https://github.com/SkyJoshua/JoinPlanet.git
cd JoinPlanet
dotnet restore
Create a .env file in the project root:
TOKEN=your-valour-bot-token
Then edit the following values in Program.cs:
long planetId = 123456789012345; // Your Planet ID
string inviteCode = ""; // Optional invite code
Do not commit your .env file to version control.
dotnet run
If authentication succeeds, the console will display the bot identity and the planet join result.
- Missing TOKEN environment variable
- Authentication failure
- Planet join failure
- Unhandled exceptions
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
See the LICENSE file for details.
If you modify and deploy this project publicly (including as a hosted service), you must make your source code available under the same AGPL-3.0 license.