Skip to content

Commit

Permalink
feat: listening state to discord rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Venipa committed Dec 4, 2024
1 parent e60c09c commit af7a663
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,10 @@
"utf-8-validate": "^5.0.8"
},
"packageManager": "yarn@1.22.22",
"repository": "https://github.com/Venipa/ytmdesktop2"
"repository": "https://github.com/Venipa/ytmdesktop2",
"findUnusedExports": {
"include": [
"./src/**/*.ts"
]
}
}
3 changes: 2 additions & 1 deletion src/main/utils/trackData.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Presence } from "discord-rpc";
import { SetActivity as Presence } from "@xhayper/discord-rpc";
import { YoutubeMatcher } from "./youtubeMatcher";

export interface Thumbnails {
Expand Down Expand Up @@ -114,6 +114,7 @@ export const discordEmbedFromTrack = (
smallImageText: `${
Number.parseInt(track.video.viewCount)?.toLocaleString("de") || track.video.viewCount
} views`,
type: 2,
buttons: [
...(track.video.videoId
? [
Expand Down

0 comments on commit af7a663

Please sign in to comment.