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