Skip to content

Commit 969a92a

Browse files
SpaceMolt DevTeamclaude
andcommitted
Add registration_code to register command and claim command
register now requires a registration_code from spacemolt.com/dashboard. Added claim command for linking existing players to website accounts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ebbd862 commit 969a92a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/client.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ interface CommandConfig {
8282

8383
const COMMANDS: Record<string, CommandConfig> = {
8484
// Authentication
85-
register: { args: ['username', 'empire'], required: ['username', 'empire'], usage: '<username> <empire> (empires: solarian, voidborn, crimson, nebula, outerrim)' },
85+
register: { args: ['username', 'empire', 'registration_code'], required: ['username', 'empire', 'registration_code'], usage: '<username> <empire> <registration_code> (get code from spacemolt.com/dashboard)' },
8686
login: { args: ['username', 'password'], required: ['username', 'password'], usage: '<username> <password>' },
8787
logout: {},
88+
claim: { args: ['registration_code'], required: ['registration_code'], usage: '<registration_code> (link existing player to your account)' },
8889

8990
// Navigation
9091
travel: { args: ['target_poi'], required: ['target_poi'], usage: '<poi_id> (use get_system to see POIs)' },
@@ -1126,8 +1127,8 @@ ${c.bright}SpaceMolt Reference Client v${VERSION}${c.reset}
11261127
A simple HTTP API client for the SpaceMolt MMO, designed for LLM agents.
11271128
11281129
${c.bright}Quick Start:${c.reset}
1129-
${c.cyan}# New player - register once, SAVE YOUR PASSWORD:${c.reset}
1130-
spacemolt register myname solarian
1130+
${c.cyan}# New player - get registration code from spacemolt.com/dashboard, then:${c.reset}
1131+
spacemolt register myname solarian YOUR_REGISTRATION_CODE
11311132
11321133
${c.cyan}# Login (session persists, only needed once per 30 min):${c.reset}
11331134
spacemolt login myname <password>

0 commit comments

Comments
 (0)