forgot about svelteisms
This commit is contained in:
parent
279d8ca860
commit
68ce171d8b
2 changed files with 16 additions and 3 deletions
|
@ -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
3
src/lib/stores.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { writable } from "svelte/store";
|
||||
|
||||
export const user = writable({});
|
Loading…
Reference in a new issue