My replicant.space game client
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| cmd/replicant | ||
| internal | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
Replicant.space
Manual bootstrap
Register
curl -X POST https://api.replicant.space/v1/accounts \
-H "Content-Type: application/json" \
-d '{
"email": "adyxax@adyxax.org",
"name": "Adyxax",
"timezone": "Europe/Paris"
}' | jq -r
Scan the system
curl -X POST https://api.replicant.space/v1/replicants/AA1DA0AC/scan \
-H "Authorization: Bearer $API_KEY" | jq -r
Travel to the belt
curl -X POST https://api.replicant.space/v1/replicants/AA1DA0AC/travel \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"destination": "NATHALAI-BELT-1"}' | jq -r
Deploy a mining drone
curl -X POST https://api.replicant.space/v1/devices/B5CB4045 \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "deploy"}' | jq -r
Mine carbon
curl -X POST https://api.replicant.space/v1/devices/B5CB4045 \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "start_mining", "resource_type": "carbon"}' | jq -r
Deploy the other drones
curl -X POST https://api.replicant.space/v1/devices/AE1037FD \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "deploy"}' | jq -r
curl -X POST https://api.replicant.space/v1/devices/D630A261 \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "deploy"}' | jq -r
curl -X POST https://api.replicant.space/v1/devices/AE1037FD \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "start_mining", "resource_type": "silicates"}' | jq -r
curl -X POST https://api.replicant.space/v1/devices/D630A261 \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "start_mining", "resource_type": "conductive"}' | jq -r
curl -X POST https://api.replicant.space/v1/devices/B5CB4045 \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "retarget", "resource_type": "silicates"}' | jq -r
Print a mining drone
curl -X POST https://api.replicant.space/v1/replicants/AA1DA0AC/print \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"device_type": "mining_drone"}'
Mine rares
curl -X POST https://api.replicant.space/v1/devices/D630A261 \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "start_mining", "resource_type": "rares"}' | jq -r
Print a survey drone
curl -X POST https://api.replicant.space/v1/replicants/AA1DA0AC/print \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"device_type": "survey_drone"}'
Deploy the survey drone
curl -X POST https://api.replicant.space/v1/devices/09E7EC91 \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "deploy"}' | jq -r
Scan the belt
curl -X POST https://api.replicant.space/v1/devices/09E7EC91 \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "scan"}' | jq -r
Search the belt
curl -X POST https://api.replicant.space/v1/devices/09E7EC91 \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "search"}' | jq -r
ami controller
curl -X POST https://api.replicant.space/v1/devices/99F118A0 \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"command": "set_directive", "directive": "deplete_smallest"}' | jq -r