automeme
The memes are sent automatically, so others will able to laugh at the jokes without having to do anything !
Program
- Javascript
- Typescript
const simplydjs = require("simply-djs");
import simplydjs from "simply-djs";
simplydjs.automeme(client, {
channelId: '01234567890123' // channelId (required)
// options (optional)
})
INFO
This should be implemented in the ready
event !
client.on('ready' => {
simplydjs.automeme() // automeme function
})
Output
Arguments:
simplydjs.automeme(
client: Discord.Client,
options: memeOptions
)
- client:
Discord.Client
- options:
memeOptions
Options memeOptions
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
channelId | Channel ID | ✅ | none | Channel ID of a Discord TextChannel |
sub | Array | ❌ | default array | An array of custom subreddits |
interval | milliseconds | ❌ | 120000ms | Interval between memes sent by the bot. |
embed | CustomizableEmbed | ❌ | default embed | Pass a CustomizableEmbed Object to customize the embed |