dosent see the link anymore

This commit is contained in:
Loic Bersier 2018-09-21 16:20:30 +02:00
parent 9772b02f9a
commit 69ee6c644e

View file

@ -13,6 +13,6 @@ module.exports = class BadmemeCommand extends Command {
async run(message) {
const number = Object.keys(responseObject).length;
const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
message.channel.send(`${picNumber}: ${responseObject[picNumber]}`);
message.channel.send(picNumber, {files: [responseObject[picNumber]]});
}
};