forked from Supositware/Haha-Yes
send bad memes
This commit is contained in:
parent
8702712c8a
commit
4aaf0803bb
1 changed files with 17 additions and 0 deletions
17
commands/fun/badmeme.js
Normal file
17
commands/fun/badmeme.js
Normal 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"]});
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue