Skip to main content

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

image

Options for bumpSystem function

OptionsTypeRequiredDefaultDescription
eventStringโœ“noneEvent you are using the function (ready/messageCreate)

ready Event Options

OptionsTypeRequiredDefaultDescription
chidArrayโœ“noneBump Channel IDs to see if you bumped it right
bumpEmbedEmbedโœ˜embedEmbed sent when the bot needs to remind to bump
thanksEmbedEmbedโœ˜embedEmbed sent when someone bumps

messageCreate event Options

OptionsTypeRequiredDefaultDescription
chidArrayโœ“noneBump Channel IDs to see if you bumped it right
messageMessageโœ“noneTo check if the bump is successful
bumpEmbedEmbedโœ˜embedEmbed sent when the bot needs to remind to bump
thanksEmbedEmbedโœ˜embedEmbed sent when someone bumps