1.1.0 • Published 5 years ago
discord-rep v1.1.0
Discord-Rep
This library will help you easily create a simple reputation system for your discord server.
Download & Update
Download:
npm i discord-repUpdate:
npm update discord-repSetting 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