forgot about svelteisms

This commit is contained in:
cirroskais 2024-03-18 16:35:55 -04:00
parent 279d8ca860
commit 68ce171d8b
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D
2 changed files with 16 additions and 3 deletions

View file

@ -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 @@
<main>
<p>garf 2: eletric boogaloo</p>
{#each logs as log}
<h1>{log.type}</h1>
<h6>{log.type}</h6>
<tt>{log.content}</tt>
<br />
{/each}

3
src/lib/stores.js Normal file
View file

@ -0,0 +1,3 @@
import { writable } from "svelte/store";
export const user = writable({});