mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-15 05:36:54 +00:00
Worked on the 'game' command and added the 'meme' command
This commit is contained in:
@@ -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] });
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user