Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions websites/A/auth's RNG/metadata.json
Original file line number Diff line number Diff line change
@@ -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",
Comment thread
auth1ery marked this conversation as resolved.
Outdated
"color": "#000000",
"category": "games",
"tags": [
"games"
]
}
29 changes: 29 additions & 0 deletions websites/A/auth's RNG/presence.ts
Original file line number Diff line number Diff line change
@@ -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",
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
state: 'Playing',
buttons: [
{
label: "play auth's RNG!",
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
url: 'https://authsrng.xyz',
},
],
}

presence.setActivity(presenceData)
})
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Loading