Despacito

This commit is contained in:
loicbersier 2018-10-07 23:02:05 +02:00
parent 31b69bfc5f
commit 6a5808babc

View file

@ -23,7 +23,9 @@ module.exports = class DespacitoCommand extends Command {
const number = Object.keys(responseObject).length;
const despacitoNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
message.channel.send({files: [responseObject[despacitoNumber]]});
} else
message.say(`${user}, you have been despacitoad`)
} else if (user.id === message.author.id) {
message.say(`Did you just try to despacitoad yourself?`)
} else
message.say(`${user}, you have been despacitoad`)
}
};