JSPM

starboard-js

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q44012F
  • License MIT

starboard-js used for who want add starboard feature to the bot

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

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

Staff

This Project under MIT License
Copyright (c) 2023-present CyraTeam

Notes

  • 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.