Skip to content

Commit

Permalink
Refactor CODEOWNERS file and update LICENSE copyright year
Browse files Browse the repository at this point in the history
  • Loading branch information
EvarinDev committed Sep 8, 2024
1 parent 21dee6a commit 02f3d6e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/.github/** @FAYStarNext
/.github/** @EvarinDev
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
- [Installing](#installing)
- [Features](#features)
- [🎈 Usage ](#-usage-)
- [⛏️ Built Using ](#️-built-using-)
- [Credits](#credits)

## 🧐 About <a name = "about"></a>
Expand Down Expand Up @@ -82,7 +81,7 @@ let manager = new Manager({
resumeStatus: true,
},
],
cache: {
caches: {
enabled: true,
time: 60000,
},
Expand Down Expand Up @@ -160,12 +159,12 @@ client.on("ready" , () => {
client.login(process.env.TOKEN);
```

## ⛏️ Built Using <a name = "built_using"></a>

- [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.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"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",
"test:manager": "bun test/manager.ts",
"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",
Expand All @@ -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"
},
Expand Down
7 changes: 2 additions & 5 deletions src/Structures/Manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class Manager extends TypedEmitter<ManagerEvents> {
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,
Expand Down Expand Up @@ -190,10 +190,7 @@ export class Manager extends TypedEmitter<ManagerEvents> {

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;
Expand Down

0 comments on commit 02f3d6e

Please sign in to comment.