Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sitcommunity/starboard-js

used for who want add starboard feature to the bot
https://github.com/sitcommunity/starboard-js

discord-starboard starboard starboard-bot

Last synced: about 2 months ago
JSON representation

used for who want add starboard feature to the bot

Awesome Lists containing this project

README

        






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


# starboard-js
[starboard-js](https://github.com/CyraTeam/starboard-js) used for who want add starboard feature to the bot

## Install
- NPM
```
npm i starboard-js
```

## Requirements
- [NodeJS](https://nodejs.org) 16.9.0 or higher
- [DiscordJS](https://discord.js.org) v14

## Example
- bot.js
```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
```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

brokenedtzjs

## License & Copyright
```
This Project under MIT License
© 2019 - 2023 CyraTeam. All Rights Reserved
```