1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-12 23:20:17 +00:00
This commit is contained in:
MatteZ02 2020-04-06 21:57:45 +03:00
parent 0aea99755c
commit 0af2ca1d44
4 changed files with 7 additions and 5 deletions

View File

@ -7,6 +7,8 @@ module.exports = {
permission: 'MANAGE_GUILD', permission: 'MANAGE_GUILD',
category: 'util', category: 'util',
async execute(msg, args, client, Discord, command) { async execute(msg, args, client, Discord, command) {
let footer;
footer = client.messages.settingsFooter.replace("%PREFIX%", client.global.db.guilds[msg.guild.id].prefix);
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setTitle(client.messages.settingsTitle) .setTitle(client.messages.settingsTitle)
.addField(client.messages.settingsPrefix, client.messages.settingsPrefixDesc, true) .addField(client.messages.settingsPrefix, client.messages.settingsPrefixDesc, true)
@ -15,7 +17,7 @@ module.exports = {
.addField(client.messages.settingsSetDj, client.messages.settingsSetDjDesc, true) .addField(client.messages.settingsSetDj, client.messages.settingsSetDjDesc, true)
.addField(client.messages.settingsAnnounceSongs, client.messages.settingsAnnounceSongsDesc) .addField(client.messages.settingsAnnounceSongs, client.messages.settingsAnnounceSongsDesc)
.addField(client.messages.settingsBass, client.messages.settingsBassDesc, true) .addField(client.messages.settingsBass, client.messages.settingsBassDesc, true)
.setFooter(client.messages.settingsFooter) .setFooter(footer)
.setAuthor(client.user.username, client.user.displayAvatarURL) .setAuthor(client.user.username, client.user.displayAvatarURL)
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
const permissions = msg.channel.permissionsFor(msg.author); const permissions = msg.channel.permissionsFor(msg.author);

View File

@ -4,7 +4,7 @@ module.exports = {
if (!args[2]) return msg.channel.send(client.messages.currentDefaultBass + client.global.db.guilds[msg.guild.id].bass); if (!args[2]) return msg.channel.send(client.messages.currentDefaultBass + client.global.db.guilds[msg.guild.id].bass);
if (args[2] === "false") { if (args[2] === "false") {
client.global.db.guilds[msg.guild.id].bass = false; client.global.db.guilds[msg.guild.id].bass = false;
msg.channel.send(client.messages.bassFalse); return msg.channel.send(client.messages.bassFalse);
} }
const level = parseInt(args[2]); const level = parseInt(args[2]);
if (isNaN(level)) return msg.channel.send(client.messages.validNumber); if (isNaN(level)) return msg.channel.send(client.messages.validNumber);

View File

@ -2,7 +2,7 @@ module.exports = {
garbage: "🗑️ ", garbage: "🗑️ ",
green_check_mark: "<:green_check_mark:674265384777416705> ", green_check_mark: "<:green_check_mark:674265384777416705> ",
loading: "<a:loading:674284196700618783> ", loading: "<a:loading:674284196700618783> ",
loudSoung: ":loud_sound: ", loudSound: ":loud_sound: ",
megaPhone: "📣 ", megaPhone: "📣 ",
notes: "<a:aNotes:674602408105476106>", notes: "<a:aNotes:674602408105476106>",
pause: "<:pause:674685548610322462> ", pause: "<:pause:674685548610322462> ",
@ -15,6 +15,6 @@ module.exports = {
skip: "<:skip:674685614221688832> ", skip: "<:skip:674685614221688832> ",
speaker: ":speaker: ", speaker: ":speaker: ",
stop: "<:stop:674685626108477519> ", stop: "<:stop:674685626108477519> ",
stopwatch: ":stopWatch: ", stopWatch: ":stopWatch: ",
volumeHigh: "<:volumehigh:674685637626167307> " volumeHigh: "<:volumehigh:674685637626167307> "
} }

View File

@ -122,7 +122,7 @@ module.exports = {
statusField3: emojis.stopWatch + "Uptime", statusField3: emojis.stopWatch + "Uptime",
statusField4: "Shard: ", statusField4: "Shard: ",
statusTitle: "Status for Musix", statusTitle: "Status for Musix",
stop: "Stopped the music!", stop: emojis.stop + "Stopped the music!",
validNumber: emojis.redx + "I'm sorry, But you need to enter a valid __number__.", validNumber: emojis.redx + "I'm sorry, But you need to enter a valid __number__.",
wrongVoiceChannel: emojis.redx + "I'm sorry but you need to be in the same voice channel as Musix to use this command!", wrongVoiceChannel: emojis.redx + "I'm sorry but you need to be in the same voice channel as Musix to use this command!",
}; };