Worked on the 'game' command and added the 'meme' command

This commit is contained in:
ION606
2022-06-01 20:38:39 +03:00
parent 5edae8d097
commit f77a4e4147
9 changed files with 237 additions and 18 deletions
+21
View File
@@ -0,0 +1,21 @@
const memes = require("random-memes");
const { randomHexColor } = require('../admin/colorgen.js');
module.exports = {
name: 'meme',
description: 'Selmer Bot will post a random meme from reddit',
async execute(message, args, Discord, Client, bot) {
memes.random().then(meme => {
const newEmbed = new Discord.MessageEmbed()
.setColor(randomHexColor())
.setTitle(meme.caption)
// .setURL(meme.image)
.setDescription(`category: ${meme.category}`)
.setImage(meme.image);
message.channel.send({ embeds: [newEmbed] });
})
}
}