Skip to content

Set a Custom Prefix System for your Discord.JS bot Using MongoDB Database! (Check the link below for the video)

License

Notifications You must be signed in to change notification settings

p0ryae/Discord.JS-Custom-Prefix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set a Custom Prefix System for your Discord.JS bot Using MongoDB Database!

📕 Requirements

  • DISCORD.JS v13
  • Basic understanding of how databases works
  • Installing an NPM package called mongoose

To install it, you just have to simply do:

npm install mongoose

📗 How to use?

This repository is fully developed and Includes a whole discord bot!

If you're looking for the command itself, Navigate through commands/setprefix.js and then get the code included inside of the module.exports.run & do the same thing for the model's folder but this time, navigate trough models/prefix.js!

Make sure to know how to connect to the database or at least have some basic understanding of MongoDBplus make sure to have the model

  • You can also clone this repository if you want and just replace the token in index.js

  • The system for the arg also is included inside of the message event in Index.js

  • make sure the message event have a similar idea to mine, or you will get some prefix errors :/

  • MAKE SURE TO Set the MongoDB URL in index.js


🐛 You found an issue or a Bug?

No worries! You can just create a pull request or a new issue as you can see on the top of the repository! You can also join our Support Discord Server if you need help with coding this or coding Discord bots in general

Releases

No releases published

Packages

No packages published