Skip to content

SITCommunity/starboard-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,
});
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);
});

Join our Discord server

Discord

Contributor

License & Copyright

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