Skip to content

Commit

Permalink
Merge pull request #17 from r-kjha/master
Browse files Browse the repository at this point in the history
Fixed all command emojis
  • Loading branch information
IgorKowalczyk authored Aug 26, 2021
2 parents 0eb84f5 + d03090c commit a3ed7ba
Show file tree
Hide file tree
Showing 32 changed files with 106 additions and 106 deletions.
2 changes: 1 addition & 1 deletion commands/Music/lyrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Please enter a song to search!",
description: `${client.bot_emojis.error} | Please enter a song to search!`,
},
});
}
Expand Down
4 changes: 2 additions & 2 deletions commands/Music/np.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | This is nothing playing right now",
description: `${client.bot_emojis.error} | This is nothing playing right now`,
},
});
}
Expand Down Expand Up @@ -53,7 +53,7 @@ module.exports = {
return message.lineReply(nowPlaying);
}
if (ms > 0 && ms < 10000) {
nowPlaying.addField("\u200b", "**[" + progressbar.filledBar(ms == 0 ? seek : ms, seek, 25, "<:bar2:838757737596190782>", "<:bar:838757737327755335>")[0] + "]**\n**" + "[" + new Date(seek * 1000).toISOString().substr(11, 8) + " / " + (ms == 0 ? " ◉ LIVE" : new Date(ms * 1000).toISOString().substr(11, 8)) + "]**" + "\n" + "**Time Remaining:** " + "``" + new Date(left * 1000).toISOString().substr(11, 8) + "``", false);
nowPlaying.addField("\u200b", "**[" + progressbar.filledBar(ms == 0 ? seek : ms, seek, 25, client.bot_emojis.emoji_bar_1, client.bot_emojis.emoji_bar_2})[0] + "]**\n**" + "[" + new Date(seek * 1000).toISOString().substr(11, 8) + " / " + (ms == 0 ? " ◉ LIVE" : new Date(ms * 1000).toISOString().substr(11, 8)) + "]**" + "\n" + "**Time Remaining:** " + "``" + new Date(left * 1000).toISOString().substr(11, 8) + "``", false);
return message.lineReply(nowPlaying);
}
} catch (err) {
Expand Down
6 changes: 3 additions & 3 deletions commands/Music/pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | This is nothing playing right now",
description: `${client.bot_emojis.error} | This is nothing playing right now`,
},
});
}
if (!message.member.voice.channel) {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Please join a voice channel first",
description: `${client.bot_emojis.error} | Please join a voice channel first`,
},
});
}
if (channel !== message.guild.me.voice.channel) {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You must be in the same voice channel as me",
description: `${client.bot_emojis.error} | You must be in the same voice channel as me`,
},
});
}
Expand Down
22 changes: 11 additions & 11 deletions commands/Music/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You should join a voice channel before using this command!",
description: `${client.bot_emojis.error} | You should join a voice channel before using this command!`,
},
});
}
if (serverQueue && channel !== message.guild.me.voice.channel) {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You must be in the same voice channel as me",
description: `${client.bot_emojis.error} | You must be in the same voice channel as me`,
},
});
}
if (!args.length) {
return message.lineReply({
embed: {
color: 16734039,
description: `<:error:860884617770303519> | Usage: ${process.env.PREFIX} play <youtube link | youtube video name>`,
description: `${client.bot_emojis.error} | Usage: ${process.env.PREFIX} play <youtube link | youtube video name>`,
},
});
}
Expand All @@ -43,15 +43,15 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | I need permissions to join your channel!",
description: `${client.bot_emojis.error} | I need permissions to join your channel!`,
},
});
}
if (!permissions.has("SPEAK")) {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | I need permissions to speak in your channel",
description: `${client.bot_emojis.error} | I need permissions to speak in your channel`,
},
});
}
Expand Down Expand Up @@ -136,7 +136,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Cannot play the video!",
description: `${client.bot_emojis.error} | Cannot play the video!`,
},
});
}
Expand All @@ -146,15 +146,15 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Max uses of api key, please update! (403)",
description: `${client.bot_emojis.error} | Max uses of api key, please update! (403)`,
},
});
} else if (song.statusCode === 429) {
queueConstruct.connection.disconnect();
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Max uses of host requests, please try again later (429)",
description: `${client.bot_emojis.error} | Max uses of host requests, please try again later (429)`,
},
});
}
Expand Down Expand Up @@ -183,15 +183,15 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Cannot play the video!",
description: `${client.bot_emojis.error} | Cannot play the video!`,
},
});
}
if (!song.title && !song.url && !song.thumbnail && !song.duration) {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Cannot play the video!",
description: `${client.bot_emojis.error} | Cannot play the video!`,
},
});
}
Expand Down Expand Up @@ -236,7 +236,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | I could not join the channel",
description: `${client.bot_emojis.error} | I could not join the channel`,
},
});
}
Expand Down
2 changes: 1 addition & 1 deletion commands/Music/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | This is nothing playing right now",
description: `${client.bot_emojis.error} | This is nothing playing right now`,
},
});
}
Expand Down
6 changes: 3 additions & 3 deletions commands/Music/resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You should join a voice channel before using this command!",
description: `${client.bot_emojis.error} | You should join a voice channel before using this command!`,
},
});
}
Expand All @@ -24,7 +24,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | There is nothing playing right now to resume!",
description: `${client.bot_emojis.error} | There is nothing playing right now to resume!`,
},
});
}
Expand All @@ -41,7 +41,7 @@ module.exports = {
message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Cannot resume the music!",
description: `${client.bot_emojis.error} | Cannot resume the music!`,
},
});
}
Expand Down
10 changes: 5 additions & 5 deletions commands/Music/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | There is a search active!",
description: `${client.bot_emojis.error} | There is a search active!`,
},
});
}
if (!message.member.voice.channel) {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Please join a voice channel first!",
description: `${client.bot_emojis.error} | Please join a voice channel first!`,
},
});
}
if (serverQueue && channel !== message.guild.me.voice.channel) {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You must be in the same voice channel as me!",
description: `${client.bot_emojis.error} | You must be in the same voice channel as me!`,
},
});
}
Expand All @@ -42,7 +42,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You must enter a song for search!",
description: `${client.bot_emojis.error} | You must enter a song for search!`,
},
});
}
Expand Down Expand Up @@ -120,7 +120,7 @@ module.exports = {
message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | An error occurred",
description: `${client.bot_emojis.error} | An error occurred`,
},
});
return resultsMessage.delete();
Expand Down
4 changes: 2 additions & 2 deletions commands/Music/shuffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You should join a voice channel before using this command!",
description: `${client.bot_emojis.error} | You should join a voice channel before using this command!`,
},
});
}
Expand All @@ -24,7 +24,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | There is nothing in the queue right now!",
description: `${client.bot_emojis.error} | There is nothing in the queue right now!`,
},
});
}
Expand Down
6 changes: 3 additions & 3 deletions commands/Music/skip.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You should join a voice channel before using this command!",
description: `${client.bot_emojis.error} | You should join a voice channel before using this command!`,
},
});
}
Expand All @@ -24,7 +24,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | There is nothing in the queue right now!",
description: `${client.bot_emojis.error} | There is nothing in the queue right now!`,
},
});
}
Expand All @@ -41,7 +41,7 @@ module.exports = {
message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Error, cannot skip music!",
description: `${client.bot_emojis.error} | Error, cannot skip music!`,
},
});
}
Expand Down
6 changes: 3 additions & 3 deletions commands/Music/stop.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You should join a voice channel before using this command!",
description: `${client.bot_emojis.error} | You should join a voice channel before using this command!`,
},
});
}
Expand All @@ -24,7 +24,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | There is nothing in the queue right now!",
description: `${client.bot_emojis.error} | There is nothing in the queue right now!`,
},
});
}
Expand All @@ -41,7 +41,7 @@ module.exports = {
message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Cannot stop the music",
description: `${client.bot_emojis.error} | Cannot stop the music`,
},
});
}
Expand Down
6 changes: 3 additions & 3 deletions commands/Music/volume.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You should join a voice channel before using this command!",
description: `${client.bot_emojis.error} | You should join a voice channel before using this command!`,
},
});
}
Expand All @@ -32,15 +32,15 @@ module.exports = {
return message.lineReply({
embed: {
color: 4779354,
description: "<:error:860884617770303519> | You can't set volume higher than 10 (Your ears.. 🪦)",
description: `${client.bot_emojis.error} | You can't set volume higher than 10 (Your ears.. 🪦)`,
},
});
}
if (args[0].includes("-") || isNaN(args[0]) || args[0] == 0) {
return message.lineReply({
embed: {
color: 4779354,
description: "<:error:860884617770303519> | You must enter correct value. I only accept numbers from 1 to 10!",
description: `${client.bot_emojis.error} | You must enter correct value. I only accept numbers from 1 to 10!`,
},
});
}
Expand Down
2 changes: 1 addition & 1 deletion commands/NSFW/fuck.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You must mention someone to fuck!",
description: `${client.bot_emojis.error} | You must mention someone to fuck!`,
},
});
}
Expand Down
6 changes: 3 additions & 3 deletions commands/NSFW/furry.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You must enter a text to search for furry!",
description: `${client.bot_emojis.error} | You must enter a text to search for furry!`,
},
});
}
Expand Down Expand Up @@ -57,14 +57,14 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: `<:error:860884617770303519> | No results found for: ${query}`,
description: `${client.bot_emojis.error} | No results found for: ${query}`,
},
});
} else {
return message.lineReply({
embed: {
color: 16734039,
description: `<:error:860884617770303519> | No results found for: ${query}`,
description: `${client.bot_emojis.error} | No results found for: ${query}`,
},
});
}
Expand Down
4 changes: 2 additions & 2 deletions commands/Owner/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | You do not have permission to run this command (Only owner of the bot can run this)!",
description: `${client.bot_emojis.error} | You do not have permission to run this command (Only owner of the bot can run this)!`,
},
});
}
Expand All @@ -22,7 +22,7 @@ module.exports = {
return message.lineReply({
embed: {
color: 16734039,
description: "<:error:860884617770303519> | Please input code to evaluate!",
description: `${client.bot_emojis.error} | Please input code to evaluate!`,
},
});
}
Expand Down
Loading

0 comments on commit a3ed7ba

Please sign in to comment.