Bloxs
Bloxs
Explore posts from servers
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Bloxs on 4/19/2025 in #help
Error using moonlink in deno
I tried it out and it works, interestingly enough it's also giving me faster song load/skip times than when I global polyfill but I assume that's probably just the lava node im using rather than code related
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Bloxs on 4/19/2025 in #help
Error using moonlink in deno
Getting accused of plagarism over allowing custom websocket implementations is crazy
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Bloxs on 4/19/2025 in #help
Error using moonlink in deno
I'll try it out though and see if smth diff happens
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Bloxs on 4/19/2025 in #help
Error using moonlink in deno
I know it'll work because I added the global npm import and that worked fine
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Bloxs on 4/19/2025 in #help
Error using moonlink in deno
I presume you could probably also check for the deno namespace then use WebSocketStream but that feels more patchworky to me
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Bloxs on 4/19/2025 in #help
Error using moonlink in deno
then you provide a fix for this + don't add any extra deps
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Bloxs on 4/19/2025 in #help
Error using moonlink in deno
I don't know how the moonlink internals look but maybe a solution to this could be a way to pass in your own websocket client when instanciating the manager for example?
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Bloxs on 4/19/2025 in #help
Error using moonlink in deno
Global polyfills don't work for my usecase because it breaks the discord api library im using, so unless there's a way I can only pass it to moonlink that doesn't work
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Bloxs on 4/19/2025 in #help
Error using moonlink in deno
I'm using the following code:
export const nodes = new Manager({
nodes: new Array(nodesCount).fill(undefined).map((_, i) => ({
host: Deno.env.get(`LAVALINK_${i + 1}_HOST`)!,
port: parseInt(Deno.env.get(`LAVALINK_${i + 1}_PORT`)!),
password: Deno.env.get(`LAVALINK_${i + 1}_PASSWORD`)!,
secure: Deno.env.get(`LAVALINK_${i + 1}_SECURE`) == "true",
identifier: Deno.env.get(`LAVALINK_${i + 1}_NAME`)!,
retryDelay: 60 * 1000,
})),
options: {
NodeLinkFeatures: true,
clientName: "Bidome/2.0.0"
},
sendPayload: async (guildID: string, payload: unknown) => {
const guild = await client.guilds.resolve(guildID);
if (guild == undefined) return;
const shard = client.shards.get(guild.shardID) as Gateway;
// deno-lint-ignore no-explicit-any
shard.send(JSON.parse(payload as any));
},
});
export const nodes = new Manager({
nodes: new Array(nodesCount).fill(undefined).map((_, i) => ({
host: Deno.env.get(`LAVALINK_${i + 1}_HOST`)!,
port: parseInt(Deno.env.get(`LAVALINK_${i + 1}_PORT`)!),
password: Deno.env.get(`LAVALINK_${i + 1}_PASSWORD`)!,
secure: Deno.env.get(`LAVALINK_${i + 1}_SECURE`) == "true",
identifier: Deno.env.get(`LAVALINK_${i + 1}_NAME`)!,
retryDelay: 60 * 1000,
})),
options: {
NodeLinkFeatures: true,
clientName: "Bidome/2.0.0"
},
sendPayload: async (guildID: string, payload: unknown) => {
const guild = await client.guilds.resolve(guildID);
if (guild == undefined) return;
const shard = client.shards.get(guild.shardID) as Gateway;
// deno-lint-ignore no-explicit-any
shard.send(JSON.parse(payload as any));
},
});
38 replies
DDeno
Created by Bloxs on 10/27/2024 in #help
Running Fresh app on Windows with pm2
I was considering pup but pm2's online monitoring dashboard is nice so if it's possible to use it I'd like to
3 replies
DDeno
Created by SabaMazmishvili on 5/3/2024 in #help
I cant install deno by running this command: curl -fsSL https://deno.land/install.sh | sh
Deno installed properly, you probably didn’t add the 2 export lines to your .bashrc or similar and thus think that deno didn’t install since the command doesn’t work
12 replies
DFDimensional Fun
Created by viztea on 8/5/2023 in #lavaclient
Project Discussion
probably better than mine
156 replies
DFDimensional Fun
Created by viztea on 8/5/2023 in #lavaclient
Project Discussion
you guys have it easy with pre made queue plugins, I had to make my own bad queue system
156 replies
DFDimensional Fun
Created by Bloxs on 2/24/2024 in #lavaclient
Error: Unexpected server response: 200
I presume it most likely is because of the fact types say otherwise
29 replies
DFDimensional Fun
Created by Bloxs on 2/24/2024 in #lavaclient
Error: Unexpected server response: 200
No description
29 replies
DFDimensional Fun
Created by viztea on 8/5/2023 in #lavaclient
Project Discussion
all of those errors are now fixed, now I just need to fix my play cmd as everythings broken :SadCat2:
156 replies
DFDimensional Fun
Created by Bloxs on 2/24/2024 in #lavaclient
Error: Unexpected server response: 200
No description
29 replies
DFDimensional Fun
Created by Bloxs on 2/24/2024 in #lavaclient
Error: Unexpected server response: 200
as I've never tried it
29 replies
DFDimensional Fun
Created by Bloxs on 2/24/2024 in #lavaclient
Error: Unexpected server response: 200
for new projects using smth like dnt would probably be the play but I don't know how viable that would be
29 replies
DFDimensional Fun
Created by Bloxs on 2/24/2024 in #lavaclient
Error: Unexpected server response: 200
It's preferred to use native deno packages but the support has gotten good enough to where most packages work
29 replies