-
Create a free account with MongoDB.
-
Create a new cluster using either premium or free plans.
-
Set up credentials and then click on Choose a connection method. Remember your
<dbUser>
and<dbUserPassword>
values, we will be using them later. -
Grab your
<dbName>
and<identifier>
values from here, we will be using them shortly. -
After MongoDB has been set up, navigate to your
.env
file located where the bot folder is and add the following line into it. Replace<dbUser>
,<dbUserPassword>
,<dbName>
and<identifier>
with the values you have set up with MongoDB.MONGODB_HOST=mongodb+srv://<dbUser>:<dbUserPassword>@<dbName>.<identifier>.mongodb.net/database?retryWrites=true&w=majority
-
Run the bot and the dashboard should be running.