Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/p0ryae/discord.js-custom-prefix

Set a Custom Prefix System for your Discord.JS bot Using MongoDB Database! (Check the link below for the video)
https://github.com/p0ryae/discord.js-custom-prefix

custom-prefix discord discord-bot discord-js discordbot discordjs mongo mongodb mongodb-database mongoose prefix prefixes

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

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:

```js

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](https://dashcruft.com/discord) if you need help with coding this or coding Discord bots in general