UNPKG

discord-starboard-plus

Version:

Discord Starboard Plus: Effortlessly highlight your community's favorite messages with customizable starboards. Pin and celebrate standout content, tailor reaction requirements, add personalized messages, and enjoy detailed logging. Showcase your server's

127 lines (93 loc) โ€ข 5.15 kB
# โญ Discord Starboard Plus [![npm version](https://img.shields.io/npm/v/discord-starboard-plus.svg?style=flat-square)](https://www.npmjs.com/package/discord-starboard-plus) [![npm downloads](https://img.shields.io/npm/dm/discord-starboard-plus.svg?style=flat-square)](https://www.npmjs.com/package/discord-starboard-plus) [![GitHub license](https://img.shields.io/github/license/GlamgarOnDiscord/discord-starboard-plus.svg?style=flat-square)](https://github.com/GlamgarOnDiscord/discord-starboard-plus/blob/master/LICENSE) > Effortlessly highlight your community's favorite messages with customizable starboards. Pin and celebrate standout content, tailor reaction requirements, add personalized messages, and enjoy detailed logging. Showcase your server's best moments and engage with members like never before. Turn your Discord server into a star-studded community with Starboard Plus! > BIG UPDATES : New edit message system, more configuration, add message, image, custom emoji and videos ! ## ๐Ÿช Table of Contents - ๐Ÿ“‘ [Overview](#-overview) - ๐Ÿš€ [Features](#-features) - ๐Ÿ—๏ธ [Project Structure](#-project-structure) - ๐Ÿงฉ [Modules](#-modules) - ๐Ÿ› ๏ธ [Getting Started](#-getting-started) - ๐Ÿ”Œ [Prerequisites](#-prerequisites) - โฌ‡๏ธ [Installation](#-installation) - ๐Ÿ“– [Usage](#-usage) - ๐Ÿงช [Running Tests](#-running-tests) - โšก [To-do](#-to-do) - ๐Ÿค [Contributing](#-contributing) - ๐Ÿ“„ [License](#-license) - ๐Ÿ‘ [Credits](#-credits) ## ๐Ÿ“‘ Overview The Discord Starboard Plus is a powerful and customizable Discord bot module that allows you to create starboards for your server. Whether you want to highlight memorable messages, pin important content, or engage with your community, Starboard Plus has got you covered. With features like customizable star emojis, reaction requirements, personalized messages, and detailed logging, you can easily turn your server into a star-studded community. ## ๐Ÿš€ Features - **Customizable Starboards:** Create multiple starboards with different settings to highlight various types of content. - **Reaction Requirements:** Set the number of reactions required for a message to appear on the starboard. - **Personalized Messages:** Add custom messages to your starboard entries to engage with your community. - **Logging:** Detailed logging options to keep track of starred messages and bot actions. - **Ignore Configuration:** Configure which channels or guilds to ignore when monitoring reactions. ## ๐Ÿ—๏ธ Project Structure Your package directory structure should resemble the following: ```bash discord-starboard-plus/ โ”œโ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ starboard.js โ”œโ”€โ”€ exemple.js โ”œโ”€โ”€ package.json โ””โ”€โ”€ README.md ``` ## ๐Ÿงฉ Modules - `starboard.js`: The main module containing the Starboard class and logic for managing starboards. ## ๐Ÿ› ๏ธ Getting Started ### ๐Ÿ”Œ Prerequisites Before you begin, ensure you have the following prerequisites: - Node.js installed on your machine. ### โฌ‡๏ธ Installation 1. Install the `discord-starboard-plus` package using npm: ```sh npm install discord-starboard-plus ``` ### ๐Ÿ“– Usage To use Discord Starboard Plus in your bot, you need to create an instance of the Starboard class and pass the necessary options. ```js const { Client, GatewayIntentBits } = require('discord.js'); const Starboard = require('discord-starboard-plus'); // Import module const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildPresences, ], }); const starboardOptions = { starboardChannelID: 'YOUR_STARBOARD_CHANNEL_ID', requiredReactions: 1, // Default : '1' starEmoji: 'STAR_EMOJI' // Default : 'โญ' (for custom emoji need to use only name of emoji) // Add other options as needed see all options in the src/starboard.js file }; client.once('ready', () => { console.log(`Logged in as ${client.user.tag}`); const starboard = new Starboard(client, starboardOptions); }); client.login('YOUR_BOT_TOKEN'); ``` ### ๐Ÿงช Running Tests Tests for Discord Starboard Plus can be run using a testing framework like Mocha or Jest. Make sure to set up appropriate testing scenarios and assertions for your specific use case. ## โšก TO-DO - [x] Add custom options. - [x] Create README. - [x] Add starboard with image and new options. - [x] Add new embed message. - [x] Patch configurations. - [x] Patch edit embed message. - [x] Adding videos, image, custom emoji. - [ ] Enable ignore guilds configuration and add more. ## ๐Ÿค Contributing Contributions are welcome! If you have any ideas, bug reports, or feature requests, please open an issue or submit a pull request in github repo. ## ๐Ÿ“„ License This project is licensed under the MIT License - see the LICENSE file for details. ## ๐Ÿ‘ Credits > All rights to this project are owned and all created by glamgar.