Giter Site home page Giter Site logo

fastlink's People

Contributors

1intan99 avatar tehpigyt avatar thepedroo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fastlink's Issues

Fastlink connection issues

Fastlink does not receive the connected status from the nodelink server if the nodelink server is already online and awaiting for connections.

If the fastlink connection is open before the nodelink server starts, it works normally.

[BUG]: WS-4016 on long-time Idle Bot

FastLink version

2.4.2

Description

Running your client and joining a voice channel and not playing anything for a long time, once you request a track, you will be hit with 4016 WS error and node won't send any audio until you move client bot to another voice channel and return it, node will send audio just fine.

Steps to reproduce

  1. Start your client, request a track.
  2. Leave Idle in VC for an unknown period of time (more than a day).
  3. Request a track again and you will hit 4016 error.

Example code

No response

Confirmations

  • My environment meets the minimum requirements.
  • I have verified that this is not a duplicate issue.

[BUG]: Spotify Playlist does not work

FastLink version

2.4.2

Description

As basic and mentioned in title, when requesting a spotify playlist it doesn't work, but a single spotify track does work.

Steps to reproduce

  1. Start your FL player on NL.
  2. Request any Spotify playlist, example
  3. See the result.

Example code

No response

Confirmations

  • My environment meets the minimum requirements.
  • I have verified that this is not a duplicate issue.

[BUG]: Recording Voice via base64Voice Isn't Working

FastLink version

2.4.2

Description

I'm running into a trouble with the "record" method used in FastLink
When using "record stop" the voice-xxxx.ogg is saved in root directory.
The issue is .ogg file is not playable using FFplay, or even audacity -> Import Raw methods

Steps to reproduce

Using the example file I created here, please make tests on playing it.

Example code

if (args[0] === 'start') {
const player = new FastLink.player.Player(message.guild.id);

          if (player.playerCreated() === false) {
              message.channel.send('No player found.');
              return;
          }
      
          const voiceEvents = player.listen();
      
          voiceEvents.on('endSpeaking', (voice) => {
              const base64Voice = voice.data;
              const buffer = Buffer.from(base64Voice, 'base64');
      
              // Check if the file exists before reading it
              try {
                  const previousVoice = fs.readFileSync(`./voice-${message.author.id}.ogg`);
                  // File exists, append the new voice data
                  fs.writeFileSync(`./voice-${message.author.id}.ogg`, Buffer.concat([previousVoice, buffer]));
              } catch (error) {
                  if (error.code === 'ENOENT') {
                      // File does not exist, create a new file with the voice data
                      fs.writeFileSync(`./voice-${message.author.id}.ogg`, buffer);
                  } else {
                      // Other error occurred, handle it appropriately
                      console.error('Error reading or writing file:', error);
                  }
              }
          });
          message.channel.send('Started recording. Be aware: This will record everything you say in the voice channel, even if the bot is deaf. Server deaf the bot if you don\'t want to be recorded by any chances.');
        }
      
      
        if (args[0] === 'stop') {
          const player = new FastLink.player.Player(message.guild.id)
      
          if (player.playerCreated() === false) {
            message.channel.send('No player found.')
      
            return;
          }
      
          player.stopListen()
      
          message.channel.send('Stopped recording.')
        }

Confirmations

  • My environment meets the minimum requirements.
  • I have verified that this is not a duplicate issue.

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.