feat(export-geardata): add log (#23)

* log

* feat: add log

* feat: update constant

Co-authored-by: spacemeowx2 <spacemeowx2@gmail.com>
main
Paul 2022-11-21 16:59:43 +08:00 committed by GitHub
parent 6918294fe7
commit 741c2c117f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -92,9 +92,10 @@ const { uid } = parseHistoryDetailId(id);
console.log("Fetching gears...");
const data = await splatnet.getGears();
const timestamp = Math.floor(new Date().getTime() / 1000);
const filename = `./geardata_${timestamp}.json`;
await Deno.writeTextFile(
`./geardata_${timestamp}.json`,
filename,
JSON.stringify({
...encryptKey(uid),
timestamp,
@ -104,4 +105,4 @@ await Deno.writeTextFile(
}),
);
console.log("Done");
console.log(`Write file: ${filename}`);

View File

@ -3,7 +3,7 @@ import type { StatInkPostBody, VsHistoryDetail } from "./types.ts";
export const AGENT_NAME = "s3si.ts";
export const S3SI_VERSION = "0.1.21";
export const NSOAPP_VERSION = "2.3.1";
export const WEB_VIEW_VERSION = "1.0.0-5644e7a2";
export const WEB_VIEW_VERSION = "1.0.0-d7b95a79";
export const S3SI_LINK = "https://github.com/spacemeowx2/s3si.ts";
export const USERAGENT = `${AGENT_NAME}/${S3SI_VERSION} (${S3SI_LINK})`;