From b2b5431ee4d36a623eb805c30b7c2e14afb2bcd7 Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Sat, 2 May 2020 18:48:58 +1000 Subject: [PATCH] fixed bugs --- src/commands/say.js | 4 ++-- src/events/voiceStateUpdate.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/say.js b/src/commands/say.js index e196847..e63fc48 100644 --- a/src/commands/say.js +++ b/src/commands/say.js @@ -5,7 +5,7 @@ exports.run = (client, message, args, level) => { ); }; if (message.content.includes("@everyone")) { - return message.channel.send(`<@${message.author.id}>`); + return message.channel.send(message.author); }; message.delete().catch(O_o => {}); @@ -24,5 +24,5 @@ exports.help = { name: "say", category: "Fun", description: "Makes Woomy copy what the user says.", - usage: "echo <-hide> [message]" + usage: "echo [message]" }; diff --git a/src/events/voiceStateUpdate.js b/src/events/voiceStateUpdate.js index 5b40a54..34fd833 100644 --- a/src/events/voiceStateUpdate.js +++ b/src/events/voiceStateUpdate.js @@ -15,7 +15,7 @@ module.exports = (client, oldState, newState) => { } // Auto-disconnect feature - if (guild.playing && guild.channel && guild.voiceChannel.id === oldState.channelID) { + if (guild.playing && guild.voiceChannel && guild.voiceChannel.id === oldState.channelID) { if (guild.voiceChannel.members.filter(member => !member.user.bot).size < 1) { guild.message.channel.send('Everyone has left my voice channel, the music will end in two minutes if no one rejoins.') .then(msg => {