diff --git a/package.json b/package.json index 9b4f23b..87a069c 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dependencies": { "7.css": "^0.16.0", "@astrojs/node": "^8.3.2", - "astro": "^4.12.2" + "astro": "^4.12.2", + "lanyard-wrapper": "^2.0.1" } } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1cd0245..806b2fb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ importers: astro: specifier: ^4.12.2 version: 4.12.2 + lanyard-wrapper: + specifier: ^2.0.1 + version: 2.0.1 packages: @@ -1062,6 +1065,9 @@ packages: resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} engines: {node: '>=6'} + lanyard-wrapper@2.0.1: + resolution: {integrity: sha512-wDMqGTEzc1AXvs3i2JaVkDHCzA7FCkpsdlJIpypOiDhhkIYJhhnDzOo91FQ3E6u5fQiF1Q8vfOOKm3kZ3peQSw==} + load-yaml-file@0.2.0: resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==} engines: {node: '>=6'} @@ -2741,6 +2747,8 @@ snapshots: kleur@4.1.5: {} + lanyard-wrapper@2.0.1: {} + load-yaml-file@0.2.0: dependencies: graceful-fs: 4.2.11 diff --git a/public/game.ico b/public/game.ico new file mode 100644 index 0000000..a1015fe Binary files /dev/null and b/public/game.ico differ diff --git a/public/music.ico b/public/music.ico new file mode 100644 index 0000000..b637078 Binary files /dev/null and b/public/music.ico differ diff --git a/src/components/Me.astro b/src/components/Me.astro index 396fff2..1a0a741 100644 --- a/src/components/Me.astro +++ b/src/components/Me.astro @@ -1,4 +1,24 @@ - + +{ + activity.type !== undefined && +
{`${activity.type === "playing" ? "Playing" : "Listening to"} ${activity.name}${activity.type === "listening" ? ` - ${activity.artist}` : ""}`}
+