add mongodb exporter and include extra details in the useragent
i am unsure if/how the agent is used by stat.ink for statistics. because of this, i am using a custom agent here to clearly show that this is a fork from s3s, intended for uploading to mongodb for my website.main
parent
ed014aa5aa
commit
2e782ccaa2
|
|
@ -1,12 +1,14 @@
|
|||
import type { StatInkPostBody, VsHistoryDetail } from "./types.ts";
|
||||
|
||||
export const AGENT_NAME = "s3si.ts";
|
||||
export const AGENT_NAME = "splatoon.catgirlin.space / s3si.ts";
|
||||
export const AGENT_VERSION = "1.0.0";
|
||||
export const S3SI_VERSION = "0.2.9";
|
||||
export const COMBINED_VERSION = `${AGENT_VERSION}/${S3SI_VERSION}`;
|
||||
export const NSOAPP_VERSION = "2.4.0";
|
||||
export const WEB_VIEW_VERSION = "2.0.0-7070f95e";
|
||||
export const S3SI_LINK = "https://github.com/spacemeowx2/s3si.ts";
|
||||
export const S3SI_LINK = "https://forgejo.catgirlin.space/catgirl/s3si.ts";
|
||||
|
||||
export const USERAGENT = `${AGENT_NAME}/${S3SI_VERSION} (${S3SI_LINK})`;
|
||||
export const USERAGENT = `${AGENT_NAME}/(${COMBINED_VERSION}) (${S3SI_LINK})`;
|
||||
export const DEFAULT_APP_USER_AGENT =
|
||||
"Mozilla/5.0 (Linux; Android 11; Pixel 5) " +
|
||||
"AppleWebKit/537.36 (KHTML, like Gecko) " +
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
import { GameExporter } from "../types.ts";
|
||||
|
||||
export class MongoDBExporter implements GameExporter {}
|
||||
Loading…
Reference in New Issue