Skip to main content

meme

The memes are sent automatically, so others will able to laugh at the jokes without having to do anything !

This should be implemented in the ready event !

Implementation

simplydjs.meme(client, { 
channelId: ['01234567890123'] // channelId (required)

// options (optional)
})

Output

auto meme sender

Types

simplydjs.meme(
client: Client,
options: memeOptions
): Promise<void>

Options

memeOptions

ParameterTypeRequiredDefaultDescription
strictbooleanfalseEnables strict mode in meme
embedCustomizableEmbeddefault embedCustomizableEmbed Object to customize the embed
channelIdstring[]noneArray Channel ID to send memes
substring[]default arrayArray of custom subreddits to send as memes
intervalnumber600000ms (10m)Interval between memes sent by the bot.
export type memeOptions = {
embed?: CustomizableEmbed;
channelId?: string;
interval?: number;
sub?: string[] | string;

strict?: boolean;
};

Example

  • Default settings

meme.js
const simplydjs = require('simply-djs')

simplydjs.meme(client, {
channelId: ['01234567890123']
})
  • Customized with options

meme.js

simplydjs.meme(client, {
channelId: ['01234567890123'], // required
strict: true,
sub: ['pewdiepie', 'meme', 'dankmemes'],
interval: 600000,
embed: {
title: "Meme time",
color: simplydjs.toRgb("#406dbc")
}
})