Turki
Turki
Explore posts from servers
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 7/9/2024 in #help
can't join a channel
it joins now but no sound
10 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 7/9/2024 in #help
can't join a channel
@1Lucas1.apk
10 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 7/9/2024 in #help
can't join a channel
this is my current code
10 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 7/9/2024 in #help
can't join a channel
const { Client, MessageEmbed } = require("discord.js");
const { joinVoiceChannel } = require("@discordjs/voice");

module.exports = {
name: "join",
aliases: ["j"],
run: async (client, message, args) => {
if (!message.member.voice.channel) {
return message.reply(
":hi: | You need to be in a voice channel for me to join."
);
}

const voiceChannel = message.member.voice.channel;

try {
const player = client.moon.players.create({
guildId: message.guild.id,
textChannel: message.channel.id,
voiceChannel: message.member.voice.channel.id,
});

if (!player.connected) {
player.connect({
setDeaf: true,
setMute: false,
});
console.log(`Connecting to voice channel: ${voiceChannel.id}`);
} else {
return message.reply(":x: I am already in a voice channel.");
}

const embed = new MessageEmbed()
.setColor("#00FF00")
.setTitle(":discordlogo:・Joined Voice Channel")
.setDescription(`Successfully joined the voice channel: ${voiceChannel.name}`)
.setFooter({
text: `Requested by: ${message.author.username}`,
});

message.reply({ embeds: [embed] });
} catch (error) {
console.error(error);
message.reply(":x: An error occurred while trying to join the voice channel.");
}
},
};
const { Client, MessageEmbed } = require("discord.js");
const { joinVoiceChannel } = require("@discordjs/voice");

module.exports = {
name: "join",
aliases: ["j"],
run: async (client, message, args) => {
if (!message.member.voice.channel) {
return message.reply(
":hi: | You need to be in a voice channel for me to join."
);
}

const voiceChannel = message.member.voice.channel;

try {
const player = client.moon.players.create({
guildId: message.guild.id,
textChannel: message.channel.id,
voiceChannel: message.member.voice.channel.id,
});

if (!player.connected) {
player.connect({
setDeaf: true,
setMute: false,
});
console.log(`Connecting to voice channel: ${voiceChannel.id}`);
} else {
return message.reply(":x: I am already in a voice channel.");
}

const embed = new MessageEmbed()
.setColor("#00FF00")
.setTitle(":discordlogo:・Joined Voice Channel")
.setDescription(`Successfully joined the voice channel: ${voiceChannel.name}`)
.setFooter({
text: `Requested by: ${message.author.username}`,
});

message.reply({ embeds: [embed] });
} catch (error) {
console.error(error);
message.reply(":x: An error occurred while trying to join the voice channel.");
}
},
};
10 replies
DIAdiscord.js - Imagine an app
Created by Turki on 4/27/2024 in #djs-voice
unknown interaction
[email protected] nodejs v16.20.2
4 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 11/6/2023 in #help
check server status and change server
i well try it
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 11/6/2023 in #help
check server status and change server
this when i start a song
lavaserverip:
{
op: 'playerUpdate',
state: { time: 1699353909408, position: 0, connected: true, ping: 0 },
guildId: '1133935011813392444'
}
lavaserverip:
{
op: 'playerUpdate',
state: { time: 1699353909410, position: 0, connected: true, ping: 0 },
guildId: '1133935011813392444'
}
lavaserverip:
{
op: 'playerUpdate',
state: { time: 1699353914407, position: 5100, connected: true, ping: 0 },
guildId: '1133935011813392444'
}
lavaserverip:
{
op: 'playerUpdate',
state: { time: 1699353919407, position: 10100, connected: true, ping: 0 },
guildId: '1133935011813392444'
}
lavaserverip:
{
op: 'playerUpdate',
state: { time: 1699353909408, position: 0, connected: true, ping: 0 },
guildId: '1133935011813392444'
}
lavaserverip:
{
op: 'playerUpdate',
state: { time: 1699353909410, position: 0, connected: true, ping: 0 },
guildId: '1133935011813392444'
}
lavaserverip:
{
op: 'playerUpdate',
state: { time: 1699353914407, position: 5100, connected: true, ping: 0 },
guildId: '1133935011813392444'
}
lavaserverip:
{
op: 'playerUpdate',
state: { time: 1699353919407, position: 10100, connected: true, ping: 0 },
guildId: '1133935011813392444'
}
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 11/6/2023 in #help
check server status and change server
nodejs 16 lavalink beta
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 11/6/2023 in #help
check server status and change server
@1Lucas1.apk
lavaserverip:
{
op: 'stats',
frameStats: null,
players: 0,
playingPlayers: 0,
uptime: 49132243,
memory: {
free: 113145728,
used: 268535936,
allocated: 381681664,
reservable: 1027604480
},
cpu: {
cores: 16,
systemLoad: 0.06566145417787596,
lavalinkLoad: 0.0001515187573424245
}
}
lavaserverip:
{
op: 'stats',
frameStats: null,
players: 0,
playingPlayers: 0,
uptime: 49132243,
memory: {
free: 113145728,
used: 268535936,
allocated: 381681664,
reservable: 1027604480
},
cpu: {
cores: 16,
systemLoad: 0.06566145417787596,
lavalinkLoad: 0.0001515187573424245
}
}
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 11/6/2023 in #help
check server status and change server
@1Lucas1.apk
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 11/6/2023 in #help
check server status and change server
some bots don't connect to lavalink when i run the command play test it reply with the music name and everything but the music don't start
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 11/6/2023 in #help
check server status and change server
@1Lucas1.apk
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 11/6/2023 in #help
check server status and change server
client.moon.on('nodeCreate', (node) => {
console.log(`${node.host} was connected\n${node.stats.players} - ${node.isConnected}`);
});
client.moon.on('nodeCreate', (node) => {
console.log(`${node.host} was connected\n${node.stats.players} - ${node.isConnected}`);
});
i get in the log
15|part_15 | lavalinkIP was connected
15|part_15 | 0 - undefined
15|part_15 | lavalinkIP was connected
15|part_15 | 0 - undefined
38 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Turki on 11/6/2023 in #help
check server status and change server
can i connect and check?
38 replies
DIAdiscord.js - Imagine an app
Created by Turki on 10/4/2023 in #djs-questions
issue with regex in autoModerationRules
if i put one it work fine 2 it stop working
10 replies
DIAdiscord.js - Imagine an app
Created by Turki on 10/4/2023 in #djs-questions
issue with regex in autoModerationRules
this is one of the regex's
10 replies
DIAdiscord.js - Imagine an app
Created by Turki on 10/4/2023 in #djs-questions
issue with regex in autoModerationRules
/discord(?:app\\.com\\/invite|\\.(?:(?:com\\/invit|m)e|li|io|gg))|\\u0645\\u062E(?:\\u0627\\u0646\\u064A|\\u0646)\\u062B|\\u0627(?:\\u0632\\u063A\\u0628|\\u0645)\\u0643|\\u062C\\u0631\\u0627\\u0631|\\u0642(?:\\u0648\\u0627\\u062F|\\u062D\\u0628)|\\u0646\\u064A\\u0643|\\u0643\\u0633/|Ù€
10 replies
DIAdiscord.js - Imagine an app
Created by Turki on 10/4/2023 in #djs-questions
issue with regex in autoModerationRules
regexPatterns is array with more then 1 regex
10 replies