Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sitcommunity/starboard-js
- Owner: SITCommunity
- License: mit
- Created: 2023-04-29T06:39:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-31T02:25:13.000Z (11 months ago)
- Last Synced: 2024-08-10T07:37:00.706Z (5 months ago)
- Topics: discord-starboard, starboard, starboard-bot
- Language: TypeScript
- Homepage: https://www.cyrateam.xyz/starboard-js/
- Size: 16.6 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
- License: LICENSE
- Code of conduct: .github/code_of_conduct
- Codeowners: .github/codeowners
Awesome Lists containing this project
README
# 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);
});
```## Contributor
## License & Copyright
```
This Project under MIT License
© 2019 - 2023 CyraTeam. All Rights Reserved
```