bumpSystem
This is an example of bumpSystem
With Customization
const simplydjs = require("simply-djs");
const { Database } = require("quickmongo");
const db = new Database(mongoURL); // your MongoDB String
ready
Event
// ready event
simplydjs.bumpSystem(client, db, {
event: "ready",
chid: ["channel id"],
bumpEmbed: embed1,
thanksEmbed: emb2
});
messageCreate
Event
// messageCreate event
simplydjs.bumpSystem(client, db, {
event: "messageCreate",
message: message,
chid: ["channel id"],
bumpEmbed: embed1,
thanksEmbed: emb2
});
INFO
Without Customization
ready
Event
// ready event
simplydjs.bumpSystem(client, db, {
event: "ready",
chid: ["channel id"]
});
messageCreate
Event
// messageCreate event
simplydjs.bumpSystem(client, db, {
event: "messageCreate",
message: message,
chid: ["channel id"]
});
Output
Options for bumpSystem function
Options | Type | Required | Default | Description |
---|---|---|---|---|
event | String | โ | none | Event you are using the function (ready/messageCreate) |
ready Event Options
Options | Type | Required | Default | Description |
---|---|---|---|---|
chid | Array | โ | none | Bump Channel IDs to see if you bumped it right |
bumpEmbed | Embed | โ | embed | Embed sent when the bot needs to remind to bump |
thanksEmbed | Embed | โ | embed | Embed sent when someone bumps |