discord-rep
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Discord-Rep

This library will help you easily create a simple reputation system for your discord server.

Download & Update

Download:

npm i discord-rep

Update:

npm update discord-rep

Setting Up

Include the module into the project:

const DiscordRep = require("discord-rep");
// Connect to MongoDB
const rep = DiscordRep("mongodb://...")

Examples

Examples can be found in /example

Methods

add
adding one reputation to the user profile

rep.add(<userID - String>, <GuildID - String>)

Output:

Promise<Object>

delete
Removes user profile

rep.delete(<userID - String>, <GuildID - String>)

Output:

Promise<Object>

P.S.

This is my first library. The creation template was taken from MrAugu. The library will expand over time. If you have any questions, please create an Issue

Package Sidebar

Install

npm i discord-rep

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

6.33 kB

Total Files

7

Last publish

Collaborators

  • vivers