InviteManagerMongoDB is a Discord robot made in Javascript with Discord.js (v12.5) and Mongoose by FrancisLaTruelle. Feel free to add a star ⭐ to the repository to promote the project !
- 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.
This is mandatory for everything to work properly. You absolutely must have them in addition to the repository.
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
}
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 !
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.
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). |
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. |
Command | Description |
---|---|
ping |
See robot latency. |
- setprefix
- setchannels
- setfakemember
- setranks
- setmessage
- invites
- leaderboard
- edit-invites
- ranks
- ping
- help
- guildMemberAdd
- guildMemberRemove
- inviteCreate
- inviteDelete
- message
- missingPermissions
- ready
- mongoDB basics functions
- Guild schema
- User schema
- Guideline : TheShadowGamer/Invite-Manager