diff --git a/components/discord-activity.jsx b/components/discord-activity.jsx index c34dfd3..da51714 100644 --- a/components/discord-activity.jsx +++ b/components/discord-activity.jsx @@ -64,7 +64,6 @@ export default function DiscordActivity() { status.activities.length ) { if (status.activities[0].id === "custom" && status.activities.length == 1) { - console.log("Hmmm Recv 1"); return (
@@ -102,9 +101,7 @@ export default function DiscordActivity() { ); } else { - console.log("Hmmm Recv 2"); if (status.activities[1]?.name === "Spotify") { - console.log("Hmmm Recv 3"); return ( {!loading && ( @@ -201,7 +198,6 @@ export default function DiscordActivity() { // ); // } else { - console.log("Hmmm Recv 4"); return ( {!loading && ( @@ -264,7 +260,6 @@ export default function DiscordActivity() { status.discord_status === "idle" || status.discord_status === "dnd") ) { - console.log("Hmmm Recv 5"); return (
@@ -303,7 +298,6 @@ export default function DiscordActivity() { ); } else { - console.log("Hmmm Recv 6"); // console.log(status); var restData = { username: "Bravo68-DF_Techs", diff --git a/components/skillComponents/lastfm_current.jsx b/components/skillComponents/lastfm_current.jsx index 4858142..1331be1 100644 --- a/components/skillComponents/lastfm_current.jsx +++ b/components/skillComponents/lastfm_current.jsx @@ -2,6 +2,7 @@ import React from "react"; import SkillCard from "../skillCard"; import SkillCardStyle from "../skillCard.styled"; import { format, parse } from "date-format-parse"; +import { useLastFM } from "use-last-fm"; function LastFMCurrentSkillCard({ title, @@ -12,7 +13,15 @@ function LastFMCurrentSkillCard({ name, url, }) { - console.log(empty); + const lastFM = useLastFM(3); + + if (lastFM.status !== "playing") { + return ( + + Not listening to anything + + ); + } return (
diff --git a/package.json b/package.json index 76495f4..f0eccf3 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,8 @@ "react": "^17.0.2", "react-dom": "^17.0.2", "react-use-lanyard": "^0.1.1", - "styled-components": "^5.3.3" + "styled-components": "^5.3.3", + "use-last-fm": "https://github.com/BRAVO68WEB/use-last-fm" }, "devDependencies": { "eslint": "^7.32.0", diff --git a/public/images/default_game.jpg b/public/images/default_game.jpg new file mode 100644 index 0000000..a347d8d Binary files /dev/null and b/public/images/default_game.jpg differ diff --git a/yarn.lock b/yarn.lock index 1f31f8d..6d50959 100644 --- a/yarn.lock +++ b/yarn.lock @@ -952,6 +952,11 @@ define-properties@^1.1.3: dependencies: object-keys "^1.0.12" +dequal@2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.2.tgz#85ca22025e3a87e65ef75a7a437b35284a7e319d" + integrity sha512-q9K8BlJVxK7hQYqa6XISGmBZbtQQWVXSrRrWreHC94rMt1QL/Impruc+7p2CYSYuVIUr+YCt6hjrs1kkdJRTug== + dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" @@ -2335,6 +2340,13 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" +swr@^0.4.0: + version "0.4.2" + resolved "https://registry.yarnpkg.com/swr/-/swr-0.4.2.tgz#4a9ed5e9948088af145c79d716d294cb99712a29" + integrity sha512-SKGxcAfyijj/lE5ja5zVMDqJNudASH3WZPRUakDVOePTM18FnsXgugndjl9BSRwj+jokFCulMDe7F2pQL+VhEw== + dependencies: + dequal "2.0.2" + swr@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/swr/-/swr-1.2.2.tgz#6cae09928d30593a7980d80f85823e57468fac5d" @@ -2429,6 +2441,12 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" +"use-last-fm@https://github.com/BRAVO68WEB/use-last-fm": + version "0.6.1" + resolved "https://github.com/BRAVO68WEB/use-last-fm#3c8026610a4d7e07c808e162ad4e9bd8ae420fd4" + dependencies: + swr "^0.4.0" + v8-compile-cache@^2.0.3: version "2.3.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"