Removed useless thing
This commit is contained in:
parent
8f12d5f9a1
commit
b1e23b47dd
6 changed files with 6 additions and 16 deletions
|
@ -20,9 +20,8 @@ module.exports = class BanCommand extends Command {
|
|||
}
|
||||
|
||||
async run(message, { member }) {
|
||||
if(member.id === message.author.id) {
|
||||
message.say("Why would you ban yourself ?")
|
||||
} else
|
||||
if(member.id === message.author.id)
|
||||
return message.say("Why would you ban yourself ?")
|
||||
member.ban()
|
||||
.then(() => message.reply(`${member.user.username} was succesfully banned.`));
|
||||
};
|
||||
|
|
|
@ -20,9 +20,8 @@ module.exports = class KickCommand extends Command {
|
|||
}
|
||||
|
||||
async run(message, { member }) {
|
||||
if(member.id === message.author.id) {
|
||||
message.say("Why would you kick yourself ?")
|
||||
} else
|
||||
if(member.id === message.author.id)
|
||||
return message.say("Why would you kick yourself ?")
|
||||
member.kick()
|
||||
.then(() => message.reply(`${member.user.username} was succesfully kicked.`));
|
||||
};
|
||||
|
|
|
@ -21,9 +21,8 @@ module.exports = class emoteSayCommand extends Command {
|
|||
message.delete();
|
||||
text.toLowerCase().split('')
|
||||
let emojiArray = [];
|
||||
for (let i = 0; i < text.length; i++) {
|
||||
for (let i = 0; i < text.length; i++)
|
||||
emojiArray[i] = emojiCharacters[text[i]];
|
||||
}
|
||||
message.say(emojiArray.join(""))
|
||||
|
||||
|
||||
|
|
|
@ -13,9 +13,6 @@ module.exports = class RandoCatCommand extends Command {
|
|||
|
||||
async run(message, { city }) {
|
||||
const { body } = await snekfetch.get(`http://aws.random.cat/meow`);
|
||||
if (body.cod == '404') {
|
||||
return message.say(`No results found for **${city}**`);
|
||||
}
|
||||
const dogEmbed = new Discord.RichEmbed()
|
||||
.setColor("#ff9900")
|
||||
.setTitle('Meow')
|
||||
|
|
|
@ -13,9 +13,6 @@ module.exports = class RandoDogCommand extends Command {
|
|||
|
||||
async run(message, { city }) {
|
||||
const { body } = await snekfetch.get(`https://random.dog/woof.json`);
|
||||
if (body.cod == '404') {
|
||||
return message.say(`No results found for **${city}**`);
|
||||
}
|
||||
const dogEmbed = new Discord.RichEmbed()
|
||||
.setColor("#ff9900")
|
||||
.setTitle('Woof')
|
||||
|
|
|
@ -10,9 +10,8 @@ module.exports = class AvatarCommand extends Command {
|
|||
}
|
||||
|
||||
async run(message) {
|
||||
if (!message.mentions.users.size) {
|
||||
if (!message.mentions.users.size)
|
||||
return message.channel.send(`Your avatar: ${message.author.displayAvatarURL}`);
|
||||
}
|
||||
|
||||
const avatarList = message.mentions.users.map(user => {
|
||||
return `${user.username}'s avatar: ${user.displayAvatarURL}`;
|
||||
|
|
Loading…
Reference in a new issue