Haha-Yes/commands/fun/badmeme.js
2018-09-07 22:48:15 +02:00

17 lines
No EOL
505 B
JavaScript

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"]});
}
};