forked from embee/woomy
fixed bugs
This commit is contained in:
parent
fef8c0e5b0
commit
b2b5431ee4
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ exports.run = (client, message, args, level) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
if (message.content.includes("@everyone")) {
|
if (message.content.includes("@everyone")) {
|
||||||
return message.channel.send(`<@${message.author.id}>`);
|
return message.channel.send(message.author);
|
||||||
};
|
};
|
||||||
|
|
||||||
message.delete().catch(O_o => {});
|
message.delete().catch(O_o => {});
|
||||||
|
@ -24,5 +24,5 @@ exports.help = {
|
||||||
name: "say",
|
name: "say",
|
||||||
category: "Fun",
|
category: "Fun",
|
||||||
description: "Makes Woomy copy what the user says.",
|
description: "Makes Woomy copy what the user says.",
|
||||||
usage: "echo <-hide> [message]"
|
usage: "echo [message]"
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,7 +15,7 @@ module.exports = (client, oldState, newState) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Auto-disconnect feature
|
// 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) {
|
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.')
|
guild.message.channel.send('Everyone has left my voice channel, the music will end in two minutes if no one rejoins.')
|
||||||
.then(msg => {
|
.then(msg => {
|
||||||
|
|
Loading…
Reference in a new issue