Getting Started
Installation
npm install lavaone -sHow to use the module
วิธีใช้การโมดูล LavaOne
const lavaone = require("lavaone");
const discord = require("discord.js");
let client = new discord.Client();
let nodes = [
{
host: "127.0.0.1",
port: 2333,
password: "iqcodeiq",
}
]
client.on("ready", async () => {
client.music = new lavaone.LavaClient(client, nodes);
client.music.Spotify = new lavaone.Spotify(
"Spotify Client ID",
"Spotify Client Scret"
);
client.music.on("nodeSuccess", (node) => {
console.log(`Node connected: ${node.options.host}`);
});
client.music.on("nodeError", console.error);
});
client.login("Token"); วิธีใช้การค้นหาเพลงจาก youtube
Last updated