18 lines
No EOL
735 B
Markdown
18 lines
No EOL
735 B
Markdown
# Custom/External Database
|
|
you can use the pre-built available database example in your bot as your need. Read the following carefully to understand the Custom Databases.
|
|
|
|
## Database Setup
|
|
```md
|
|
SQL Database Setup
|
|
- Copy the code from the given file from: ./Database Examples/index4mysql.js.
|
|
- Install the mysql package: `npm i mysql`.
|
|
- Insert your DB values.
|
|
and that's it start the bot and it should work.
|
|
```
|
|
```md
|
|
MongoDB Setup
|
|
- Copy the code from the given file from: ./Database Examples/index4mongo.js.
|
|
- Install the quickmongo package: npm i quickmongo
|
|
- Add your connection string in the config file with the following variable: "mongo_url": "your-mongo-connection-string"
|
|
and that's it start the bot and it should work.
|
|
``` |