From 02f3d6e1cce48905f9868bd0bacea871f58c65a7 Mon Sep 17 00:00:00 2001 From: FAYStarNext Date: Sun, 8 Sep 2024 11:45:44 +0000 Subject: [PATCH] Refactor CODEOWNERS file and update LICENSE copyright year --- .github/CODEOWNERS | 2 +- LICENSE | 2 +- README.md | 9 ++++----- package.json | 12 ++++++------ src/Structures/Manager.ts | 7 ++----- 5 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 678cda3..98b75df 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -/.github/** @FAYStarNext \ No newline at end of file +/.github/** @EvarinDev \ No newline at end of file diff --git a/LICENSE b/LICENSE index 3a3ef60..cda29ed 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 EwarinDev +Copyright (c) 2024 EvarinDev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a04d6d7..7a87962 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,6 @@ - [Installing](#installing) - [Features](#features) - [🎈 Usage ](#-usage-) -- [⛏️ Built Using ](#️-built-using-) - [Credits](#credits) ## 🧐 About @@ -82,7 +81,7 @@ let manager = new Manager({ resumeStatus: true, }, ], - cache: { + caches: { enabled: true, time: 60000, }, @@ -160,12 +159,12 @@ client.on("ready" , () => { client.login(process.env.TOKEN); ``` -## ⛏️ Built Using - -- [WebSocket](https://github.com/websockets/ws) - WebSocket Client ## Credits - [Erela.Js](https://github.com/MenuDocs/erela.js) - [MagmaStream](https://github.com/Blackfort-Hosting/magmastream/) +## Star History +[![Star History Chart](https://api.star-history.com/svg?repos=EwarinDev/DiscordStatusProfile&type=Date)](https://star-history.com/#EwarinDev/DiscordStatusProfile&Date) + See also the list of [contributors](https://github.com/FAYStarNext/Sunday.ts/contributors) who participated in this project. \ No newline at end of file diff --git a/package.json b/package.json index 80c8476..24f03ef 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,10 @@ "name": "sunday.ts", "main": "dist/index.js", "types": "dist/index.d.ts", - "version": "1.1.3", + "version": "1.1.4", "description": "Sunday a lavalink wrapper", "license": "MIT", - "author": "EwarinDev", + "author": "EvarinDev", "scripts": { "build:js": "npx babel src --out-dir dist --extensions \".ts,.tsx\" --source-maps inline", "lint": "npx eslint src/**/*.ts", @@ -13,9 +13,9 @@ "test:player": "bun test/player.ts" }, "devDependencies": { - "@eslint/js": "^9.9.1", + "@eslint/js": "^9.10.0", "@types/bun": "latest", - "eslint": "^9.9.1", + "eslint": "^9.10.0", "globals": "^15.9.0", "typescript-eslint": "^8.4.0", "@babel/cli": "^7.25.6", @@ -28,9 +28,9 @@ "access": "public" }, "bugs": { - "url": "https://github.com/EwarinDev/Sunday.ts/issues" + "url": "https://github.com/EvarinDev/Sunday.ts/issues" }, - "homepage": "https://github.com/EwarinDev/Sunday.ts#readme", + "homepage": "https://github.com/EvarinDev/Sunday.ts#readme", "peerDependencies": { "typescript": "^5.5.4" }, diff --git a/src/Structures/Manager.ts b/src/Structures/Manager.ts index 57b443d..30ab9c1 100644 --- a/src/Structures/Manager.ts +++ b/src/Structures/Manager.ts @@ -119,7 +119,7 @@ export class Manager extends TypedEmitter { shards: 1, autoPlay: true, usePriority: false, - clientName: "Sunday.ts (https://github.com/EwarinDev/Sunday.ts)", + clientName: "Sunday.ts (https://github.com/EvarinDev/Sunday.ts)", defaultSearchPlatform: "youtube", useNode: "leastPlayers", ...options, @@ -190,10 +190,7 @@ export class Manager extends TypedEmitter { try { const res = (await node.rest.get(`/v4/loadtracks?identifier=${encodeURIComponent(search)}`)) as LavalinkResponse; - - if (!res) { - throw new Error("Query not found."); - } + if (!res) throw new Error("Query not found."); let searchData = []; let playlistData: PlaylistRawData | undefined;