Package Exports
- starboard-js
- starboard-js/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (starboard-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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