run deno fmt

nxapi-presence
Rosalina 2024-01-14 02:08:23 -05:00 committed by imspace
parent b8e53fc719
commit 055b1405df
2 changed files with 15 additions and 4 deletions

10
s3si.ts
View File

@ -4,7 +4,13 @@ import { flags } from "./deps.ts";
const parseArgs = (args: string[]) => { const parseArgs = (args: string[]) => {
const parsed = flags.parse(args, { const parsed = flags.parse(args, {
string: ["profilePath", "exporter", "skipMode", "listMethod", "nxapiPresenceUrl"], string: [
"profilePath",
"exporter",
"skipMode",
"listMethod",
"nxapiPresenceUrl",
],
boolean: ["help", "noProgress", "monitor", "withSummary"], boolean: ["help", "noProgress", "monitor", "withSummary"],
alias: { alias: {
"help": "h", "help": "h",
@ -15,7 +21,7 @@ const parseArgs = (args: string[]) => {
"skipMode": ["s", "skip-mode"], "skipMode": ["s", "skip-mode"],
"withSummary": "with-summary", "withSummary": "with-summary",
"listMethod": "list-method", "listMethod": "list-method",
"nxapiPresenceUrl": ["nxapi-presence"] "nxapiPresenceUrl": ["nxapi-presence"],
}, },
}); });
return parsed; return parsed;

View File

@ -412,9 +412,14 @@ export class App {
await this.exportOnce(); await this.exportOnce();
} }
if (isSplatoon3Active !== this.splatoon3PreviouslyActive) { if (isSplatoon3Active !== this.splatoon3PreviouslyActive) {
this.env.logger.debug("Splatoon 3 status has changed from", this.splatoon3PreviouslyActive, "to", isSplatoon3Active) this.env.logger.debug(
"Splatoon 3 status has changed from",
this.splatoon3PreviouslyActive,
"to",
isSplatoon3Active,
);
} }
this.splatoon3PreviouslyActive = isSplatoon3Active this.splatoon3PreviouslyActive = isSplatoon3Active;
} }
} }
async monitor() { async monitor() {