Skip to content
/ rmeme Public

Returns the URL of a random meme image (made for a discord bot)

Notifications You must be signed in to change notification settings

Dawwwei/rmeme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Random Meme Generator

Returns the URL of a random meme image (made for a discord bot)

Example:
const rmeme = require('rmeme');
console.log(rmeme.generate()); // ==> URL (No promise)
Discord Bot Example:
const { SlashCommandBuilder } = require('discord.js');
const rmeme = require('rmeme');

module.exports = {
    data: new SlashCommandBuilder()
        .setName('meme')
        .setDescription('Replies with a random meme'),
    async execute(interaction) {
        try {
            const memeURL = rmeme.generate();
            await interaction.reply({ content: 'Here is a random meme', files: [memeURL] });
        } catch (error) {
            console.log(error);
        }
    },
};

About

Returns the URL of a random meme image (made for a discord bot)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published