InviteManager MongoDB
Introduction
InviteManagerMongoDB is a Discord robot made in Javascript with Discord.js (v12.5) and Mongoose by FrancisLaTruelle.
Feel free to add a star
Features
Non-exhaustive list:
- Automatic invitation counting
- Addition (or removal) of role based on user invitations
- False account detector (too recent)
- Advanced leaderboard
- Support for translations (illimited languages)
- Completely customizable directly on Discord
- Manages an unlimited number of Discord servers (multi-servers)
More features are coming very soon, feel free to make suggestions / corrections.
Important: The robot parameters defined directly on Discord are unique for each server. This facilitates the management of multi-servers.
Installation
Requirements
This is mandatory for everything to work properly. You absolutely must have them in addition to the repository.
Configuration
The configuration of the internal robot is divided into 2 parts, it is your PublicConfig.json
and PrivateConfig.json
. As their name suggests, one contains visual information only and the other contains private information such as your Discord bot token or your mongoDB url. Changing PrivateConfig.json
will be required to start the bot.
Example of PrivateConfig.json
:
{
"token" : "XXXXXXXX", <- Your private Discord bot token
"mongoDB" : "mongodb+srv://XXXXXXXX:XXXXXXXX@XXXXXXXX/invitemanager" <- Your private MongoURL
}
Launch the bot
Don't forget to configure your PrivateConfig.json
first.
Remember to be in the main folder to write these commands in your command prompt.
- Run
npm i
to install all dependencies ofpackage.json
- Run
node main.js
orpm2 start main.js
- Enjoy it !
Commands List
The default prefix is /
, you can easily change it directly on Discord, it must be present before any command.
Only the available commands are listed, the current features are in the Todo list.
Configuration
Command | Description |
---|---|
setchannels |
Define arrival and departure lounges. |
setfakemember |
Set the number of days for a user to be considered fake. |
setprefix |
Define the prefix (default: / ). |
setranks |
Define the ranks of your server (roles obtainable through invitations). |
Invitations
Command | Description |
---|---|
edit-invites |
Edit the number of invitations for a user (bonus invitations). |
invites |
See the number of invitations (since always, left, invalid, bonus and total). |
leaderboard |
See the top 10 server members with the most total invitations. |
ranks |
See the available ranks. |
Utils
Command | Description |
---|---|
ping |
See robot latency. |
To do list
Configuration commands
- setprefix
- setchannels
- setfakemember
- setranks
- setmessage
Invitations commands
- invites
- leaderboard
- edit-invites
- ranks
Utils commands
- ping
- help
Events
- guildMemberAdd
- guildMemberRemove
- inviteCreate
- inviteDelete
- message
- missingPermissions
- ready
MongoDB
- mongoDB basics functions
- Guild schema
- User schema
Credits
- Guideline : TheShadowGamer/Invite-Manager