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-jsRequirements
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
Staff
- @brokenedtzjs Founder starboard-js
License & Copyright
This Project under MIT License
Copyright (c) 2023-present CyraTeamNotes
- This package is modified from reconlx package, i make this because not updated the package for long time, and i modified this package for latest discord.js version.
