From 68ce171d8b9fa699ec536d6cd5af322975c22017 Mon Sep 17 00:00:00 2001 From: cirroskais Date: Mon, 18 Mar 2024 16:35:55 -0400 Subject: [PATCH] forgot about svelteisms --- src/App.svelte | 16 +++++++++++++--- src/lib/stores.js | 3 +++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 src/lib/stores.js diff --git a/src/App.svelte b/src/App.svelte index b0edecc..2f47f22 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -6,15 +6,25 @@ async function main() { const auth = await authorize().catch((e) => e); if (!auth) return (logs = [...logs, { type: "Auth", content: `Failure | ${JSON.stringify(auth)}` }]); - logs = [...logs, { type: "Auth", content: JSON.stringify(auth) }]; + logs = [...logs, { type: "Auth", content: JSON.stringify(auth.user) }]; const response = await discordSdk.commands.setActivity({ activity: { type: 3, details: "garf", - state: "Garf", + state: "garfing rn", timestamps: { start: Date.now(), + end: 0, + }, + party: { + size: [4, 5], + }, + assets: { + large_image: "embedded_cover", + large_text: "garf", + small_image: "embedded_cover", + small_text: "garf", }, }, }); @@ -28,7 +38,7 @@

garf 2: eletric boogaloo

{#each logs as log} -

{log.type}

+
{log.type}
{log.content}
{/each} diff --git a/src/lib/stores.js b/src/lib/stores.js new file mode 100644 index 0000000..909f517 --- /dev/null +++ b/src/lib/stores.js @@ -0,0 +1,3 @@ +import { writable } from "svelte/store"; + +export const user = writable({});