lava-spotify
lava-spotify copied to clipboard
Facing problem called load of undefined providing my code below
const { LavasfyClient } = require("lavasfy"); const lavasfy = new LavasfyClient({ clientID: "8ebd0f06c47a4a61b5b16add2b2a0967", clientSecret: "422c3521a33b49c9be22eac9a763be95" }, [ { "name": "myname", "host": "myhost", "port": myport, "auth": "mypass", "secure": true } ] ); await lavasfy.requestToken();
const node = lavasfy.getNode("Karthik")
const ok = await node.load("https://open.spotify.com/track/6i0V12jOa3mr6uu4WYhUBr")
msg.channel.send(ok)
message.channel.send("logged")

you sure that your node name is Karthik ?