Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Commit 7a259c6

Browse files
ItzSudhanJosephA-cute-blobColonel-Ltdyekaranfil
authored
Development (#187)
* Development (#183) * Update index.js (#178) * Handle error LavaLink not connect (#180) * Delete .replit * Handle error node not connect .. * Handle error lavalink not connect * Create .replit * Master branch to development (#171) * Latest commits to fix stuff (#169) * 24/7 Stay in vc stuff * edits and fixes (#168) Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> * ;-; (#170) * 24/7 Stay in vc stuff * edits and fixes (#168) * add: YouTube Tutorial at readme Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> * edits and some fixes, but not all * split loop and loopqueue to make it simpler * Fixed single Spotify track "no matches" error * Small edits Co-authored-by: A cute Blob <77403361+A-cute-blob@users.noreply.github.com> Co-authored-by: ColonelOU <67454598+Colonel-Ltd@users.noreply.github.com> Co-authored-by: Sudhan <55418697+SudhanPlayz@users.noreply.github.com> * Development (#186) * Master branch to development (#171) * Latest commits to fix stuff (#169) * 24/7 Stay in vc stuff * edits and fixes (#168) Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> * ;-; (#170) * 24/7 Stay in vc stuff * edits and fixes (#168) * add: YouTube Tutorial at readme Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> * edits and some fixes, but not all * split loop and loopqueue to make it simpler * Fixed single Spotify track "no matches" error * Small edits * Fix 'Searching' has already been declared * Development (#183) (#184) * Update index.js (#178) * Handle error LavaLink not connect (#180) * Delete .replit * Handle error node not connect .. * Handle error lavalink not connect * Create .replit * Master branch to development (#171) * Latest commits to fix stuff (#169) * 24/7 Stay in vc stuff * edits and fixes (#168) Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> * ;-; (#170) * 24/7 Stay in vc stuff * edits and fixes (#168) * add: YouTube Tutorial at readme Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> * edits and some fixes, but not all * split loop and loopqueue to make it simpler * Fixed single Spotify track "no matches" error * Small edits Co-authored-by: A cute Blob <77403361+A-cute-blob@users.noreply.github.com> Co-authored-by: ColonelOU <67454598+Colonel-Ltd@users.noreply.github.com> Co-authored-by: Sudhan <55418697+SudhanPlayz@users.noreply.github.com> Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> Co-authored-by: A cute Blob <77403361+A-cute-blob@users.noreply.github.com> Co-authored-by: ColonelOU <67454598+Colonel-Ltd@users.noreply.github.com> * Update play.js (#185) When the bot is kicked out of the room while the song is playing, the play command did not bring the bot into the room, it only adds the song added with the play command to the queue and the bot did not come to the room. (When the bot is thrown with the change made, it will be able to come to the room with the play command) * Slash command fixes * edits * Update grab.js * Update loop.js Co-authored-by: Sudhan <55418697+SudhanPlayz@users.noreply.github.com> Co-authored-by: ColonelOU <67454598+Colonel-Ltd@users.noreply.github.com> Co-authored-by: A cute Blob <77403361+A-cute-blob@users.noreply.github.com> Co-authored-by: yekaranfil <77460386+yekaranfil@users.noreply.github.com> Co-authored-by: Joseph <71621973+joeyk710@users.noreply.github.com> Co-authored-by: A cute Blob <77403361+A-cute-blob@users.noreply.github.com> Co-authored-by: ColonelOU <67454598+Colonel-Ltd@users.noreply.github.com> Co-authored-by: yekaranfil <77460386+yekaranfil@users.noreply.github.com>
1 parent 89ba03b commit 7a259c6

12 files changed

Lines changed: 22 additions & 16 deletions

File tree

commands/bassboost.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ module.exports = {
2626

2727
let player = await client.Manager.get(message.guild.id);
2828
if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");
29-
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to play something!**");
30-
else if(message.guild.me.voice && message.guild.me.voice.channel.id !== message.member.voice.channel.id)return client.sendTime(message.channel, `❌ | **You must be in ${guild.me.voice.channel} to use this command.**`);
29+
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to use this command!**");
30+
//else if(message.guild.me.voice && message.guild.me.voice.channel.id !== message.member.voice.channel.id)return client.sendTime(message.channel, `❌ | **You must be in ${guild.me.voice.channel} to use this command.**`);
3131

3232
if (!args[0]) return client.sendTime(message.channel, "**Please provide a bassboost level. \nAvailable Levels:** `none`, `low`, `medium`, `high`"); //if the user do not provide args [arguments]
3333

commands/grab.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
run: async (client, message, args, { GuildDB }) => {
2121
let player = await client.Manager.get(message.guild.id);
2222
if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");
23+
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to use this command!**");
2324
message.author.send(new MessageEmbed()
2425
.setAuthor(`Saved Song:`, client.user.displayAvatarURL({
2526
dynamic: true
@@ -40,7 +41,7 @@ run: async (client, message, args, { GuildDB }) => {
4041
return message.channel.send("**:x: Your Dm's are disabled**")
4142
})
4243

43-
message.react("✅").catch(e=>console.log("Could not react"))
44+
client.sendTime(message.channel, "✅ | **Check your DMs!**")
4445
},
4546
SlashCommand: {
4647
/**
@@ -51,11 +52,12 @@ run: async (client, message, args, { GuildDB }) => {
5152
* @param {*} param3
5253
*/
5354
run: async (client, interaction, args, { GuildDB }) => {
55+
const user = client.users.cache.get(interaction.member.user.id);
5456
let player = await client.Manager.get(interaction.guild_id);
5557
if (!player) return client.sendTime(interaction, "❌ | **Nothing is playing right now...**");
5658
try{
5759
let embed = new MessageEmbed()
58-
.setAuthor(`Saved from `, interaction.guild.name, client.user.displayAvatarURL())
60+
.setAuthor(`Saved Song: `, client.user.displayAvatarURL())
5961
.setThumbnail(`https://img.youtube.com/vi/${player.queue.current.identifier}/mqdefault.jpg`)
6062
.setURL(player.queue.current.uri)
6163
.setColor("RANDOM")
@@ -66,15 +68,15 @@ run: async (client, message, args, { GuildDB }) => {
6668
.addField(`▶ Play it:`, `\`${GuildDB ? GuildDB.prefix : client.config.DefaultPrefix
6769
}play ${player.queue.current.uri}\``)
6870
.addField(`🔎 Saved in:`, `<#${interaction.channel_id}>`)
69-
.setFooter(`Requested by: ${player.queue.current.requester.tag} | Guild: ${interaction.guild.name}`, player.queue.current.requester.displayAvatarURL({
71+
.setFooter(`Requested by: ${player.queue.current.requester.tag}`, player.queue.current.requester.displayAvatarURL({
7072
dynamic: true
7173
}))
72-
interaction.send(embed);
74+
user.send(embed);
7375
}catch(e) {
74-
return client.sendTime(interaction, "**:x: Your DM's are disabled**")
76+
return client.sendTime(interaction, "**:x: Your DMs are disabled**")
7577
}
7678

77-
interaction.react("✅").catch(e => console.log("Could not react"))
79+
client.sendTime(interaction, "✅ | **Check your DMs!**")
7880
},
7981
},
8082
};

commands/loop.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
run: async (client, message, args, { GuildDB }) => {
2121
let player = await client.Manager.get(message.guild.id);
2222
if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");
23-
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to play something!**");
23+
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to use this command!**");
2424
//else if(message.guild.me.voice && message.guild.me.voice.channel.id !== message.member.voice.channel.id)return client.sendTime(message.channel, `❌ | **You must be in ${guild.me.voice.channel} to use this command.**`);
2525

2626
if (player.trackRepeat) {
@@ -45,8 +45,8 @@ module.exports = {
4545
const voiceChannel = member.voice.channel;
4646
let player = await client.Manager.get(interaction.guild_id);
4747
if (!player) return client.sendTime(interaction, "❌ | **Nothing is playing right now...**");
48-
if (!member.voice.channel) return interaction.send("❌ | You must be on a voice channel.");
49-
if (guild.me.voice.channel && !guild.me.voice.channel.equals(member.voice.channel)) return interaction.send(`❌ | You must be on ${guild.me.voice.channel} to use this command.`);
48+
if (!member.voice.channel) return interaction.send("❌ | **You must be in a voice channel to use this command!**");
49+
if (guild.me.voice.channel && !guild.me.voice.channel.equals(voiceChannel)) return interaction.send(`❌ | You must be in ${guild.me.voice.channel} to use this command.`);
5050

5151
if(player.trackRepeat){
5252
player.setTrackRepeat(false)

commands/loopqueue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
run: async (client, message, args, { GuildDB }) => {
2121
let player = await client.Manager.get(message.guild.id);
2222
if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");
23-
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to play something!**");
23+
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to use this command!**");
2424
//else if(message.guild.me.voice && message.guild.me.voice.channel.id !== message.member.voice.channel.id)return client.sendTime(message.channel, `❌ | **You must be in ${guild.me.voice.channel} to use this command.**`);
2525

2626
if (player.QueueRepeat) {

commands/pause.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
run: async (client, message, args, { GuildDB }) => {
2121
let player = await client.Manager.get(message.guild.id);
2222
if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");
23-
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to play something!**");
23+
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to use this command!**");
2424
//else if(message.guild.me.voice && message.guild.me.voice.channel.id !== message.member.voice.channel.id)return client.sendTime(message.channel, `❌ | **You must be in ${guild.me.voice.channel} to use this command.**`);
2525
if (player.paused) return client.sendTime(message.channel, "❌ | **Music is already paused!**");
2626
player.pause(true);

commands/remove.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const { TrackUtils } = require("erela.js");
2222
let player = await client.Manager.players.get(message.guild.id);
2323
const song = player.queue.slice(args[0] - 1, 1);
2424
if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");
25-
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to play something!**");
25+
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to use this command!**");
2626
//else if(message.guild.me.voice && message.guild.me.voice.channel.id !== message.member.voice.channel.id)return client.sendTime(message.channel, `❌ | **You must be in ${guild.me.voice.channel} to use this command.**`);
2727

2828
if (!player.queue || !player.queue.length || player.queue.length === 0)

commands/resume.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
run: async (client, message, args, { GuildDB }) => {
2121
let player = await client.Manager.get(message.guild.id);
2222
if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");
23-
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to play something!**");
23+
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to use this command!**");
2424
//else if(message.guild.me.voice && message.guild.me.voice.channel.id !== message.member.voice.channel.id)return client.sendTime(message.channel, `❌ | **You must be in ${guild.me.voice.channel} to use this command.**`);
2525

2626
if (player.playing) return message.channel.send("Music is already resumed!");

commands/seek.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
run: async (client, message, args, { GuildDB }) => {
2121
let player = await client.Manager.get(message.guild.id);
2222
if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");
23+
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to use this command!**");
2324
if (!player.queue.current.isSeekable) return message.channel.send("This song is not able to seek from.");
2425
let SeekTo = client.ParseHumanTime(args.join(" "));
2526
if (!SeekTo) return message.channel.send("Please enter a time to seek!");

commands/shuffle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = {
1919
run: async (client, message, args, { GuildDB }) => {
2020
let player = await client.Manager.get(message.guild.id);
2121
if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");
22+
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to use this command!**");
2223

2324
if (!player.queue || !player.queue.length || player.queue.length === 0) return message.channel.send("Not enough songs in the queue to shuffle!");
2425
player.queue.shuffle();

commands/skip.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
run: async (client, message, args, { GuildDB }) => {
2121
let player = await client.Manager.get(message.guild.id);
2222
if (!player) return client.sendTime(message.channel, "❌ | **Nothing is playing right now...**");
23+
if (!message.member.voice.channel) return client.sendTime(message.channel, "❌ | **You must be in a voice channel to use this command!**");
2324
player.stop();
2425
await message.react("✅");
2526
},

0 commit comments

Comments
 (0)