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
Types
simplydjs.meme(
client: Client,
options: memeOptions
): Promise<void>
- client:
Client
- options:
memeOptions
Options
memeOptions
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
strict | boolean | ❌ | false | Enables strict mode in meme |
embed | CustomizableEmbed | ❌ | default embed | CustomizableEmbed Object to customize the embed |
channelId | string[] | ✅ | none | Array Channel ID to send memes |
sub | string[] | ❌ | default array | Array of custom subreddits to send as memes |
interval | number | ❌ | 600000ms (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")
}
})