feat(export-geardata): add log (#23)
* log * feat: add log * feat: update constant Co-authored-by: spacemeowx2 <spacemeowx2@gmail.com>main
parent
6918294fe7
commit
741c2c117f
|
|
@ -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}`);
|
||||
|
|
|
|||
|
|
@ -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})`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue