forked from Supositware/Haha-Yes
dosent see the link anymore
This commit is contained in:
parent
9772b02f9a
commit
69ee6c644e
1 changed files with 1 additions and 1 deletions
|
@ -13,6 +13,6 @@ module.exports = class BadmemeCommand extends Command {
|
||||||
async run(message) {
|
async run(message) {
|
||||||
const number = Object.keys(responseObject).length;
|
const number = Object.keys(responseObject).length;
|
||||||
const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
|
const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
|
||||||
message.channel.send(`${picNumber}: ${responseObject[picNumber]}`);
|
message.channel.send(picNumber, {files: [responseObject[picNumber]]});
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in a new issue