send bad memes

This commit is contained in:
Loïc Bersier 2018-09-07 22:48:15 +02:00
parent 8702712c8a
commit 4aaf0803bb

17
commands/fun/badmeme.js Normal file
View file

@ -0,0 +1,17 @@
const { Command } = require('discord.js-commando');
module.exports = class BadmemeCommand extends Command {
constructor(client) {
super(client, {
name: 'badmeme',
group: 'fun',
memberName: 'badmeme',
description: 'test.',
});
}
run(message) {
const number = 3;
const imageNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
message.say( {files: ["./pictures/" + imageNumber + ".jpeg"]});
}
};