Skip to content

Latest commit

 

History

History
90 lines (59 loc) · 2.74 KB

README.md

File metadata and controls

90 lines (59 loc) · 2.74 KB

Docker s3s

Docker Builds

GitHub Stars Docker Pulls

Docker Image for s3s

Installation

docker pull naoigcat/s3s

Usage

Generate config.txt

$ touch config.txt
$ docker run --rm -it -v $PWD/config.txt:/opt/s3s/config.txt naoigcat/s3s -r
Generating new config file.
s3s v0.5.2
stat.ink API key: *******************************************
Default locale is en-US. Press Enter to accept, or enter your own (see readme for list).
ja-JP
Blank token(s).
Please log in to your Nintendo Account to obtain your session_token.

Make sure you have read the "Token generation" section of the readme before proceeding. To manually input your tokens instead, enter "skip" at the prompt below.

Navigate to this URL in your browser:
https://accounts.nintendo.com/connect/1.0.0/authorize?xxx
Log in, right click the "Select this account" button, copy the link address, and paste it below:
*******************************************
Wrote session_token to config.txt.
Attempting to generate new gtoken and bulletToken...
Wrote tokens for naoigcat to config.txt.

Validating your tokens... done.
  1. Make an empty config.txt

  2. Run docker command

  3. Paste stat.ink API Key

  4. Input a locale

  5. Open URL https://accounts.nintendo.com/connect/1.0.0/authorize?xxx in the browser

  6. Copy the link address of the "Select this account"

Upload data manually

$ docker run --rm -it -v $PWD/config.txt:/opt/s3s/config.txt naoigcat/s3s -r
s3s v0.5.2
Validating your tokens... done.

Checking if there are previously-unuploaded battles/jobs...
Previously-unuploaded battles detected. Uploading now...
Battle uploaded to https://stat.ink/@xxxxxxxx/spl3/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Previously-unuploaded jobs detected. Uploading now...
Job uploaded to https://stat.ink/@xxxxxxxx/salmon3/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  1. Run docker command

Upload data automatically

  1. Open the repository on Github

  2. Open Settings > Security > Secrets and variables > Actions

  3. New repository secret

    • Name: CONFIG

    • Secret: the content of config.txt

  4. Open Settings > Code and automation > Actions > General

  5. Select "Allow {username}, and select non-{username}, actions and reusable workflows" in Actions permissions

  6. Check "Allow actions created by GitHub"

  7. Check "Allow actions by Marketplace verified creators"