Giter Club home page Giter Club logo

sandysounds's Introduction

SandySounds

The only non-client specific Lavalink client for JavaScript.

Most of the code is ported from eris-lavalink which you can find here

sandysounds's People

Contributors

anothergenz avatar anli5005 avatar dependabot-support avatar jtsshieh avatar

Stargazers

Roman avatar Tueem avatar  avatar Pedro Fracassi avatar Aaron avatar Lief Evans avatar Kyle avatar Blake avatar Crispyィ™ avatar Khaaz avatar  avatar Wolke avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

anli5005

sandysounds's Issues

Need Documentation

If anyone could just go through the version 1 code and create some documentation that would be super helpful!

this.client.sendWS is not a function

Client discord.js v12 (master)
SandySounds Most recent commit (using V2)

I'm a bit stumped on this, whenever trying to connect to a voice channel using client.player.join(channel.guild.id, channel.id);, I am consistently getting TypeError: this.client.sendWS is not a function (see here).

For context, client.player is a new SandySounds that looks like this;

client.player = new SandySounds(client, nodes, {
    numShards: 1,
    userId: client.user.id,
    regions: regions,
    defaultRegion: 'us'
  });

I've tried manually changing the code so that it properly sends the websocket request, but that just ends up with me getting Voice connection timeout, so I'm a bit stuck. I can't tell if this is an issue with me because I've done something wrong, or if it's something else, but any help would be appreciated.

Voice connection timeout

Getting the same error on both your v2 and the original eris-lavalink.
In the bot's console:

Error: Voice connection timeout
    at Timeout.pendingGuilds.(anonymous function).timeout.setTimeout [as _onTimeout] (C:\Users\chris\Desktop\baconbot\node_modules\lavalink.js\src\PlayerManager.js:354:15)
    at ontimeout (timers.js:475:11)
    at tryOnTimeout (timers.js:310:5)
    at Timer.listOnTimeout (timers.js:270:5)

Lavalink console:

[16:11:23] [ INFO ] [[/]] Initializing Spring FrameworkServlet 'dispatcherServlet'
[16:11:23] [ INFO ] [DispatcherServlet] FrameworkServlet 'dispatcherServlet': initialization started
[16:11:23] [ INFO ] [DispatcherServlet] FrameworkServlet 'dispatcherServlet': initialization completed in 17 ms
[16:11:23] [ INFO ] [AudioLoaderRestHandler] GET /loadtracks
[16:11:23] [ INFO ] [GarbageCollectionMonitor] GC monitoring enabled, reporting results every 2 minutes.
[16:11:24] [ INFO ] [AudioLoader] Loaded playlist Search results for: lo-fi
[16:11:24] [ INFO ] [SocketServer] {"op":"connect","guildId":"356197359153315840","channelId":"371378812476194838"}
[16:11:24] [ WARN ] [SocketServer] Unexpected operation: connect
[16:11:34] [ INFO ] [SocketServer] {"op":"disconnect","guildId":"356197359153315840"}
[16:11:34] [ WARN ] [SocketServer] Unexpected operation: disconnect

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.