starboard-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

node-current npm npm latest GitHub Repo stars Discord Visitor Issues Commit Website

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

Discord

Contributor

License & Copyright

This Project under MIT License
© 2019 - 2023 CyraTeam. All Rights Reserved

Package Sidebar

Install

npm i starboard-js

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

22 kB

Total Files

22

Last publish

Collaborators

  • brokenedtz