From a2fa939d07adc3949f3bbba01777521712d17784 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Thu, 12 Mar 2020 02:59:52 +0200 Subject: [PATCH] Changing big initials to messages --- commands/play.js | 8 ++++---- commands/volume.js | 4 ++-- struct/funcs/check.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/commands/play.js b/commands/play.js index 5b6a633..ad8939a 100644 --- a/commands/play.js +++ b/commands/play.js @@ -10,9 +10,9 @@ module.exports = { const radio = client.radio.get(msg.guild.id); const voiceChannel = msg.member.voice.channel; if (!radio) { - if (!msg.member.voice.channel) return msg.channel.send('you need to be in a voice channel to play music!'); + if (!msg.member.voice.channel) return msg.channel.send('You need to be in a voice channel to play music!'); } else { - if (voiceChannel !== radio.voiceChannel) return msg.channel.send('you need to be in the same voice channel as RadioX to play music!'); + if (voiceChannel !== radio.voiceChannel) return msg.channel.send('You need to be in the same voice channel as RadioX to play music!'); } if (!args[1]) return msg.channel.send('You need to use a number or search for a supported station!'); const permissions = voiceChannel.permissionsFor(msg.client.user); @@ -28,13 +28,13 @@ module.exports = { return; } else if (!isNaN(number)) { if (number > client.stations.length - 1) { - return msg.channel.send('no such station!'); + return msg.channel.send('No such station!'); } else { url = client.stations[number].stream[client.stations[number].stream.default]; station = client.stations[number]; } } else { - if (args[1].length < 4) return msg.channel.send('station must be over 3 characters!'); + if (args[1].length < 4) return msg.channel.send('Station must be over 3 characters!'); const sstation = await client.funcs.searchStation(args.slice(1).join(' '), client); if (!sstation) return msg.channel.send('No stations found!'); url = sstation.stream[sstation.stream.default]; diff --git a/commands/volume.js b/commands/volume.js index 47608d8..572b3aa 100644 --- a/commands/volume.js +++ b/commands/volume.js @@ -7,7 +7,7 @@ module.exports = { category: 'music', execute(msg, args, client, Discord, prefix, command) { const radio = client.radio.get(msg.guild.id); - if (!args[1] && radio) return msg.channel.send(`current volume: **${radio.volume}**`); + if (!args[1] && radio) return msg.channel.send(`Current volume: **${radio.volume}**`); const volume = parseFloat(args[1]); if (client.funcs.check(client, msg, command)) { if (isNaN(volume)) return msg.channel.send('you need to enter a valid __number__.'); @@ -15,7 +15,7 @@ module.exports = { if (volume < 0) return msg.channel.send('The volume needs to be a positive number!'); radio.volume = volume; radio.connection.dispatcher.setVolume(volume / 5); - return msg.channel.send(`volume is now: **${volume}**`); + return msg.channel.send(`Volume is now: **${volume}**`); } } }; diff --git a/struct/funcs/check.js b/struct/funcs/check.js index f3d56e5..7677574 100644 --- a/struct/funcs/check.js +++ b/struct/funcs/check.js @@ -3,7 +3,7 @@ module.exports = function (client, msg, command) { const permissions = msg.channel.permissionsFor(msg.author); if (!radio || !radio.playing) return msg.channel.send('There is nothing playing!'); if (msg.author.id !== client.config.devId) { - if (msg.member.voice.channel !== radio.voiceChannel) return msg.channel.send(`you need to be in the same voice channel as RadioX to use this command!`); + if (msg.member.voice.channel !== radio.voiceChannel) return msg.channel.send(`You need to be in the same voice channel as RadioX to use this command!`); if (!permissions.has(command.permission)) { msg.channel.send(`You need the \`${command.permission}\` permission to use this command!`); return false;