From ba6093163e06c02c0e9fd0b110d804b03becca91 Mon Sep 17 00:00:00 2001 From: ivy lopez Date: Sun, 30 Aug 2026 12:56:34 -0600 Subject: [PATCH 1/4] feat(auth's RNG): add activity --- websites/A/auth's RNG/metadata.json | 22 ++++++++++++++++++++++ websites/A/auth's RNG/presence.ts | 29 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 websites/A/auth's RNG/metadata.json create mode 100644 websites/A/auth's RNG/presence.ts diff --git a/websites/A/auth's RNG/metadata.json b/websites/A/auth's RNG/metadata.json new file mode 100644 index 000000000000..cd5f9fe6a697 --- /dev/null +++ b/websites/A/auth's RNG/metadata.json @@ -0,0 +1,22 @@ +{ + "$schema": "https://schemas.premid.app/metadata/1.17", + "apiVersion": 1, + "author": { + "id": "1227759305852190801", + "name": "lovelyauth" + }, + "service": "auth's RNG", + "description": { + "en": "the greatest RNG webgame of all time. roll, sell, buy, repeat, and customize." + }, + "url": "authsrng.xyz", + "regExp": "^https?[:][/][/]([a-z0-9-]+[.])*authsrng[.]xyz[/]", + "version": "1.0.0", + "logo": "https://authsrng.xyz/assets/favicons/android-chrome-512x512.png", + "thumbnail": "https://authsrng.xyz/assets/favicons/android-chrome-512x512.png", + "color": "#000000", + "category": "games", + "tags": [ + "games" + ] +} diff --git a/websites/A/auth's RNG/presence.ts b/websites/A/auth's RNG/presence.ts new file mode 100644 index 000000000000..fddd5f0e6f66 --- /dev/null +++ b/websites/A/auth's RNG/presence.ts @@ -0,0 +1,29 @@ +import { Assets } from 'premid' + +const presence = new Presence({ + clientId: '1408180664670359673', +}) + +const browsingTimestamp = Math.floor(Date.now() / 1000) + +enum ActivityAssets { + Logo = 'https://authsrng.xyz/assets/favicons/android-chrome-512x512.png', +} + +presence.on('UpdateData', async () => { + const presenceData: PresenceData = { + largeImageKey: ActivityAssets.Logo, + smallImageKey: Assets.Play, + startTimestamp: browsingTimestamp, + details: "auth's RNG", + state: 'Playing', + buttons: [ + { + label: "play auth's RNG!", + url: 'https://authsrng.xyz', + }, + ], + } + + presence.setActivity(presenceData) +}) \ No newline at end of file From 8d07e6b043912c53978f5f019ad7014f96d24f68 Mon Sep 17 00:00:00 2001 From: ivy lopez Date: Sun, 30 Aug 2026 13:00:53 -0600 Subject: [PATCH 2/4] fix(auth's RNG): resolve eslint quote and newline issues --- websites/A/auth's RNG/presence.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/websites/A/auth's RNG/presence.ts b/websites/A/auth's RNG/presence.ts index fddd5f0e6f66..26f146ac6117 100644 --- a/websites/A/auth's RNG/presence.ts +++ b/websites/A/auth's RNG/presence.ts @@ -15,15 +15,15 @@ presence.on('UpdateData', async () => { largeImageKey: ActivityAssets.Logo, smallImageKey: Assets.Play, startTimestamp: browsingTimestamp, - details: "auth's RNG", + details: 'auth\'s RNG', state: 'Playing', buttons: [ { - label: "play auth's RNG!", + label: 'play auth\'s RNG!', url: 'https://authsrng.xyz', }, ], } presence.setActivity(presenceData) -}) \ No newline at end of file +}) From b60b914187cc306630032f521d8b78d17b6c1af0 Mon Sep 17 00:00:00 2001 From: ivy lopez Date: Sun, 6 Sep 2026 12:04:04 -0600 Subject: [PATCH 3/4] fix(auth's RNG): add screens support and update thumbnail --- websites/A/auth's RNG/metadata.json | 4 ++-- websites/A/auth's RNG/presence.ts | 24 ++++++++++++++++-------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/websites/A/auth's RNG/metadata.json b/websites/A/auth's RNG/metadata.json index cd5f9fe6a697..aedc093f7bf5 100644 --- a/websites/A/auth's RNG/metadata.json +++ b/websites/A/auth's RNG/metadata.json @@ -13,10 +13,10 @@ "regExp": "^https?[:][/][/]([a-z0-9-]+[.])*authsrng[.]xyz[/]", "version": "1.0.0", "logo": "https://authsrng.xyz/assets/favicons/android-chrome-512x512.png", - "thumbnail": "https://authsrng.xyz/assets/favicons/android-chrome-512x512.png", + "thumbnail": "https://nightly.authsrng.xyz/assets/promo.png", "color": "#000000", "category": "games", "tags": [ "games" ] -} +} \ No newline at end of file diff --git a/websites/A/auth's RNG/presence.ts b/websites/A/auth's RNG/presence.ts index 26f146ac6117..c5d6f52f4423 100644 --- a/websites/A/auth's RNG/presence.ts +++ b/websites/A/auth's RNG/presence.ts @@ -11,19 +11,27 @@ enum ActivityAssets { } presence.on('UpdateData', async () => { + const { pathname } = document.location + const presenceData: PresenceData = { largeImageKey: ActivityAssets.Logo, smallImageKey: Assets.Play, startTimestamp: browsingTimestamp, details: 'auth\'s RNG', - state: 'Playing', - buttons: [ - { - label: 'play auth\'s RNG!', - url: 'https://authsrng.xyz', - }, - ], + } + + if (pathname.includes('leaderboard')) { + presenceData.state = 'viewing leaderboard' + } + else if (pathname.includes('profile')) { + presenceData.state = 'viewing profile' + } + else if (pathname.includes('credits')) { + presenceData.state = 'viewing credits' + } + else { + presenceData.state = 'playing' } presence.setActivity(presenceData) -}) +}) \ No newline at end of file From 585c4e7d8c451724eb22b44b72405f22343d9f4c Mon Sep 17 00:00:00 2001 From: ivy lopez Date: Sun, 6 Sep 2026 12:07:23 -0600 Subject: [PATCH 4/4] fix(auth's RNG): add screens support, update thumbnail, fix newline --- websites/A/auth's RNG/metadata.json | 2 +- websites/A/auth's RNG/presence.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/websites/A/auth's RNG/metadata.json b/websites/A/auth's RNG/metadata.json index aedc093f7bf5..2b9ccabd90e4 100644 --- a/websites/A/auth's RNG/metadata.json +++ b/websites/A/auth's RNG/metadata.json @@ -19,4 +19,4 @@ "tags": [ "games" ] -} \ No newline at end of file +} diff --git a/websites/A/auth's RNG/presence.ts b/websites/A/auth's RNG/presence.ts index c5d6f52f4423..c4f1d91f7a91 100644 --- a/websites/A/auth's RNG/presence.ts +++ b/websites/A/auth's RNG/presence.ts @@ -34,4 +34,4 @@ presence.on('UpdateData', async () => { } presence.setActivity(presenceData) -}) \ No newline at end of file +})