Added todo

This commit is contained in:
loicbersier 2018-09-25 20:09:42 +02:00
parent 9322464501
commit 0a804b3e67
2 changed files with 9 additions and 8 deletions

View file

@ -24,11 +24,10 @@ module.exports = class BanCommand extends Command {
if(member.id === message.author.id) { if(member.id === message.author.id) {
message.say("Why would you ban yourself ?") message.say("Why would you ban yourself ?")
} else } else
member.ban().then(member => { member.ban()
message.reply(`${member.user.username} was succesfully banned.`); .then(() => message.reply(`${member.user.username} was succesfully banned.`));
//TODO //TODO
//Send a message when the bot didint manage to kick //Send a message when the bot didint manage to kick
}); };
}
}; };

View file

@ -24,8 +24,10 @@ module.exports = class KickCommand extends Command {
if(member.id === message.author.id) { if(member.id === message.author.id) {
message.say("Why would you kick yourself ?") message.say("Why would you kick yourself ?")
} else } else
member.kick().then(member => { member.kick()
message.reply(`${member.user.username} was succesfully kicked.`); .then(() => message.reply(`${member.user.username} was succesfully kicked.`));
});
} //TODO
//Send a message when the bot didint manage to kick
};
}; };