kawalink 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +72 -0
  2. package/package.json +36 -0
package/README.md ADDED
@@ -0,0 +1,72 @@
1
+ <div align="center">
2
+ <h1>KawaLink</h1>
3
+ <p>The best lavalink client for discord.js easy for use, thx fork from sakulink</p>
4
+ <p>ระบบตัวช่วยเล่นเพลง ร่วมกับ Lavalink ใช้งานง่าย</p>
5
+ <a href="https://github.com/x2super/kawalink">Documentation »</a>
6
+ </div>
7
+
8
+ ## Getting Started
9
+
10
+ ### Install Kawalink
11
+
12
+ ```sh
13
+ npm install kawalink
14
+ ```
15
+
16
+ ```sh
17
+ yarn add kawalink
18
+ ```
19
+
20
+ ```sh
21
+ pnpm add kawalink
22
+ ```
23
+
24
+ ```sh
25
+ bun add kawalink
26
+ ```
27
+
28
+ ## Example Code
29
+ ```js
30
+ const { Manager } = require("kawalink");
31
+ const { Client } = require("discord.js");
32
+
33
+ const client = new Client({
34
+ intents: [
35
+ GatewayIntentBits.Guilds,
36
+ GatewayIntentBits.MessageContent,
37
+ GatewayIntentBits.GuildMessages,
38
+ GatewayIntentBits.GuildVoiceStates,
39
+ ],
40
+ });
41
+
42
+ client.manager = new Manager({
43
+ nodes: [
44
+ {
45
+ host: "0.0.0.0",
46
+ port: 2333,
47
+ password: "youshallnotpass",
48
+ identifier: "Default",
49
+ secure: false,
50
+ playback: true,
51
+ },
52
+ ],
53
+ send: (guild, payload) => client.guilds.cache.get(guild)?.shard?.send(payload),
54
+ autoPlay: true,
55
+ defaultSearchPlatform: "youtube music",
56
+ shards: client.shard?.count ?? 1,
57
+ });
58
+
59
+ client.manager.on("nodeConnect", node => console.log(`Node ${node.options.identifier} connected.`));
60
+
61
+ client.run("token")
62
+ ```
63
+
64
+ ## Need Help?
65
+
66
+ Join this [discord server](https://discord.gg/drJbwRFEXu) and create new forum on #help for support
67
+
68
+ ## Credits
69
+ - Forked by [Sakulink](https://github.com/JirayuSrisawat-Github/sakulink)
70
+ - Modify by [Magmastream](https://github.com/Blackfort-Hosting/magmastream)
71
+ - Modify by [Erela.JS](https://github.com/MenuDocs/erela.js/)
72
+ - Modify by [Moonlink.JS](https://github.com/Ecliptia/moonlink.js)
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "kawalink",
3
+ "version": "1.0.1",
4
+ "description": "The best lavalink client for discord.js easy for use, thx fork from sakulink",
5
+ "keywords": [
6
+ "performance",
7
+ "lavalink",
8
+ "kawalink"
9
+ ],
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+ssh://git@github.com:x2super/kawalink.git"
13
+ },
14
+ "license": "ISC",
15
+ "author": "Kasawa",
16
+ "type": "commonjs",
17
+ "main": "dist/index.js",
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "scripts": {
22
+ "test": "echo \"Error: no test specified\" && exit 1",
23
+ "build": "tsc"
24
+ },
25
+ "dependencies": {
26
+ "@discordjs/collection": "^2.1.1",
27
+ "axios": "^1.7.7",
28
+ "lodash": "^4.17.21",
29
+ "typescript": "^5.5.4"
30
+ },
31
+ "devDependencies": {
32
+ "@types/lodash": "^4.17.7",
33
+ "@types/node": "^22.5.2",
34
+ "@types/ws": "^8.5.12"
35
+ }
36
+ }