s3si.ts fork that adds an exporter for MongoDB. Mirrored to https://github.com/catgirlinspace/s3si.ts
 
 
 
 
 
 
Go to file
Rosalina 5fd0dbbd14
Merge remote-tracking branch 'upstream/main'
2023-05-24 23:41:56 -04:00
.devcontainer ci: add CI (#21) 2022-11-16 20:47:01 +08:00
.github ci: enable updater only when tag 2023-04-21 22:09:00 +08:00
gui fix: wrong ability keys in some languages (0.3.5) 2023-04-27 00:20:08 +08:00
scripts commit splashcat stuff 2023-05-24 23:41:09 -04:00
src Merge remote-tracking branch 'upstream/main' 2023-05-24 23:41:56 -04:00
.dockerignore ci: add CI (#21) 2022-11-16 20:47:01 +08:00
.gitattributes ci: add CI (#21) 2022-11-16 20:47:01 +08:00
.gitignore feat: add tauri project 2023-03-09 16:34:26 +08:00
CHANGELOG.md fix: wrong ability keys in some languages (0.3.5) 2023-04-27 00:20:08 +08:00
Dockerfile ci: add CI (#21) 2022-11-16 20:47:01 +08:00
LICENSE Initial commit 2022-10-18 15:25:09 +08:00
README.md feat: add summary export to App 2022-11-29 18:40:55 +08:00
deno.json fix: fmt 2023-03-09 16:34:26 +08:00
deno.lock commit splashcat stuff 2023-05-24 23:41:09 -04:00
deps.ts Merge from upstream and bump version. 2023-03-24 19:29:35 -04:00
dev_deps.ts feat: add init rank 2022-10-31 13:34:00 +08:00
initRank.ts fix: initRank 2022-11-18 20:48:46 +08:00
s3si.ts feat: add jsonrpc 2023-03-09 16:34:26 +08:00

README.md

s3si.ts

Build status Constant check status

Export your battles from SplatNet to stat.ink.

If you have used s3s, please see here.

Usage

  1. Install deno

  2. Run deno run -Ar https://raw.githubusercontent.com/spacemeowx2/s3si.ts/main/s3si.ts [options]

Options:
    --profile-path <path>, -p    Path to config file (default: ./profile.json)
    --exporter <exporter>, -e    Exporter list to use (default: stat.ink)
                                 Multiple exporters can be separated by commas
                                 (e.g. "stat.ink,file")
    --no-progress, -n            Disable progress bar
    --monitor, -m                Monitor mode
    --skip-mode <mode>, -s       Skip mode (default: null)
                                 ("vs", "coop")
    --with-summary               Include summary in the output
    --help                       Show this help message and exit`,
  1. If it's your first time running this, follow the instructions to login to Nintendo Account. Your token will be saved to profile.json for future use.
  • If you want to use a different profile, use -p to specify the path to the profile file.

Track your rank

  • Run deno run -Ar https://raw.githubusercontent.com/spacemeowx2/s3si.ts/main/initRank.ts to initialize your rank data. (You can also use -p to specify the path to the profile file.)

  • Then enter your current rank and rank point. For example: S+0,300. And the rank will be saved in the profile.json.

  • After that, run s3si.ts, the rank point will be reported to stat.ink.

profile.json

{
  // cacheDir is the directory to store cache files
  "cacheDir": "./cache",
  // don't change this if you don't know what it is
  "fGen": "https://api.imink.app/f",
  // if you run with -e file, this is the directory to store exported files
  "fileExportPath": "./export",
  // the interval to check for new battles in monitor mode
  "monitorInterval": 500,
  // login token
  "loginState": {
    "sessionToken": "...",
    "gToken": "...",
    "bulletToken": "..."
  },
  // userLang will effect the language of the exported games to stat.ink
  "userLang": "zh-CN",
  "userCountry": "JP",
  "statInkApiKey": "..."
}

Migrate from s3s

If you have used s3s before, you can migrate your data to s3si.ts by creating a profile.json file with the following contents:

{
  "loginState": {
    "sessionToken": "<session_token in your s3s' config.txt>"
  },
  "statInkApiKey": "<your stat.ink API key>"
}

Then run s3si.ts, and it will work without login prompt.

Credits