Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/p0ryae/discord.js-custom-prefix
- Owner: p0ryae
- License: apache-2.0
- Created: 2020-09-04T07:30:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-04T03:35:36.000Z (over 2 years ago)
- Last Synced: 2024-09-23T01:31:51.215Z (about 2 months ago)
- Topics: custom-prefix, discord, discord-bot, discord-js, discordbot, discordjs, mongo, mongodb, mongodb-database, mongoose, prefix, prefixes
- Language: JavaScript
- Homepage: https://youtu.be/A3KGV27iq04
- Size: 41 KB
- Stars: 43
- Watchers: 1
- Forks: 36
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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