performanc / fastlink Goto Github PK
View Code? Open in Web Editor NEWThe NodeJs Lavalink client.
License: BSD 2-Clause "Simplified" License
The NodeJs Lavalink client.
License: BSD 2-Clause "Simplified" License
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.
2.4.2
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.
No response
2.4.2
As basic and mentioned in title, when requesting a spotify playlist it doesn't work, but a single spotify track does work.
No response
2.4.2
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
Using the example file I created here, please make tests on playing it.
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.')
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.