starboard-js used for who want add starboard feature to the bot
- NPM
npm i starboard-js
- bot.js
const { Client } = require('discord.js');
const { Starboard } = require('starboard-js');
const client = ({
//your client
});
const starboard = new Starboard({
client: client,
});
client.starboard = starboard;
module.exports = client;
- starboard.js
const client = require('your bot.js');
const { Events } = require('discord.js');
client.on(Events.MessageReactionAdd, (reaction) => {
client.starboard.listener(reaction);
});
client.on(Events.MessageReactionRemove, (reaction) => {
client.starboard.listener(reaction);
});
This Project under MIT License
© 2019 - 2023 CyraTeam. All Rights Reserved