Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the erela.js code base #2

Merged
merged 3 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions NOTICE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This project includes code from the Apache-licensed project erela.js

Portions of this software are licensed under the Apache License, Version 2.0 (the "Apache License");
you may not use this file except in compliance with the Apache License. You may obtain a copy of the
Apache License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the Apache License
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the Apache License for the specific language governing permissions and limitations under the Apache License.

Copyright 2021 MenuDocs
27 changes: 4 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
- [🎈 Usage ](#-usage-)
- [🚀 Deployment ](#-deployment-)
- [⛏️ Built Using ](#️-built-using-)
- [✍️ Authors ](#️-authors-)
- [Credits](#credits)

## 🧐 About <a name = "about"></a>

Expand Down Expand Up @@ -62,25 +62,7 @@ That's it! You have successfully installed Sunday.ts and are ready to start usin
## 🎈 Usage <a name="usage"></a>

```ts
import { Node } from "sunday.ts"
const node = new Node({
host: 'localhost',
port: 2333,
password: 'youshallnotpass',
});

node.on("ready", () => {
console.log("Ready");
});
node.on("stats", () => {
console.log(node.stats);
});
node.on("raw", (data) => {
console.log(data);
});
node.connect();
node.rest?.on("get", (data) => console.log(data));
node.rest?.get("/loadtracks?identifier=dQw4w9WgXcQ")

```

## 🚀 Deployment <a name = "deployment"></a>
Expand All @@ -91,9 +73,8 @@ Add additional notes about how to deploy this on a live system.

- [WebSocket](https://github.com/websockets/ws) - WebSocket Client
- [Axios](https://github.com/axios/axios) - HTTP Request
## Credits

## ✍️ Authors <a name = "authors"></a>

- [FAYStarNext](https://github.com/FAYStarNext) - Idea & Initial work
- [Erela.Js](https://github.com/MenuDocs/erela.js)

See also the list of [contributors](https://github.com/FAYStarNext/Sunday.ts/contributors) who participated in this project.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"type": "module",
"version": "1.0.1-indev",
"description": "Sunday a lavalink wrapper",
"license": "MIT",
"scripts": {
"build:js": "npx babel src --out-dir dist --extensions \".ts,.tsx\" --source-maps inline",
"lint": "npx x eslint src/**/*.ts",
Expand Down
9 changes: 3 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
export * from "./structures/Node";
export * from "./types/Node";
export * from "./structures/Manager";
export * from "./types/Manager";
export * from "./structures/Node";
export * from "./structures/Player";
export * from "./types/Player";
export * from "./structures/Rest";
export * from "./types/Rest";
export * from "./structures/Queue";
export * from "./structures/Utils";
Loading