Go to https://www.mongodb.com/cloud/atlas/register and create an account if you don't already have one and verify your email. Once you completed registration, follow these instructions to create shared cluster:
On Shared column, click to Create:
You can customize it, but you're safe if you will just click to Create Cluster:
Create your database account and set username and password and click to Create User:
Navigate to Network Access tab and click to Add IP Address:
Click to Alow access from anywhere and Confirm:
Navigate to Database tab and click to Connect:
You will see your connection string, copy it and replace <password> with you password you've set in Step 3:
Now save your connection string, you will need it in moment, it should look like this:
mongodb+srv://your_username:your_password@cluster0.wn0eyuh.mongodb.net/?retryWrites=true&w=majority
Railway
Use this button:
You will need to login with Github
Now you will need set Enviroment Variables:
_You have to set only DRSS_BOT_TOKEN and DRSS_DATABASE_URI variables, others are optional.
DRSS_BOT_TOKEN is from Create Discord bot application > Step 5, click to Reset Token and insert copied token.
DRSS_DATABASE_URI is from Create MongoDB Atlas Database > Step 14-15, insert it here_
If you want to change some default settings, you can change it too. Once you're done, click to Deploy:
Now you will need wait your project is created and deployed.
When you see green checkmark, you can check if your Discord bot is online and if so, you can try discord commands:
Inspired by: https://github.com/synzen/MonitoRSS/issues/95.
Create Discord bot application
Go to https://discord.com/developers/applications, click to New Application![image](https://user-images.githubusercontent.com/53045046/209191017-dfa61ebd-85f4-4b17-a7e8-e1559f5a5894.png)
Name it and click to Create![image](https://user-images.githubusercontent.com/53045046/209191415-25845d45-81fc-4a2a-aa3a-5f5fdc1b32ef.png)
Navigate to Bot tab: You can also see Application ID, you will need it when you invite bot to your server.![image](https://user-images.githubusercontent.com/53045046/209192376-af5702bf-d415-4c9d-a427-69e2b0400548.png)
Click to Add Bot and confirm you want do it:
![image](https://user-images.githubusercontent.com/53045046/209192990-982ef650-1290-44da-9f80-a128a26ecfbb.png)
Add avatar of your bot: You can also see Token, you will need it later. Do not share this token with anyone else!!!!![image](https://user-images.githubusercontent.com/53045046/209193259-b3393a23-d050-41b5-9515-3309c1c365ec.png)
If you don't want others to be able to add your bot turn off the Public Bot setting.![image](https://user-images.githubusercontent.com/53045046/209193523-47c073ce-14a6-4d97-a4a4-6dd65a0363fe.png)
To be able ot use bot commands, turn on all these settings:![image](https://user-images.githubusercontent.com/53045046/209193816-fd331258-f1bb-4f72-a071-bd368e7abe1c.png)
Invite the bot
Use one of the below URLs replacing the
INSERTHERE
with the Application ID from previous Step 3. With Role: https://discord.com/oauth2/authorize?client_id=INSERTHERE&scope=bot&permissions=19456 (Permissions Read Messages, Send Messages, Embed Links) Without Role: https://discord.com/oauth2/authorize?client_id=INSERTHERE&scope=botCreate MongoDB Atlas Database
Go to https://www.mongodb.com/cloud/atlas/register and create an account if you don't already have one and verify your email. Once you completed registration, follow these instructions to create shared cluster:
On Shared column, click to Create:![image](https://user-images.githubusercontent.com/53045046/209179895-8ea2fd2f-963b-41f4-8ea0-1b54fd32ff2d.png)
You can customize it, but you're safe if you will just click to Create Cluster:![image](https://user-images.githubusercontent.com/53045046/209180173-7e2af3da-1650-4c4b-a90e-494e1a034ce7.png)
Create your database account and set username and password and click to Create User:![image](https://user-images.githubusercontent.com/53045046/209181159-065ddecc-8e27-4050-b968-ce92e6199adb.png)
Navigate to Network Access tab and click to Add IP Address:![image](https://user-images.githubusercontent.com/53045046/209181971-acdc4869-7dc1-4049-b016-661cd6a04ae8.png)
Click to Alow access from anywhere and Confirm:![image](https://user-images.githubusercontent.com/53045046/209183038-298161df-df34-41a9-a31a-dff9d3d6b2b1.png)
Navigate to Database tab and click to Connect:![image](https://user-images.githubusercontent.com/53045046/209185516-d5c9a19a-5f42-48e6-b4d4-7421b9f47328.png)
You will see your connection string, copy it and replace![image](https://user-images.githubusercontent.com/53045046/209185483-76dce2b5-6b7b-44c4-83cf-fc6f73b60bbc.png)
<password>
with you password you've set in Step 3:Now save your connection string, you will need it in moment, it should look like this:
mongodb+srv://your_username:your_password@cluster0.wn0eyuh.mongodb.net/?retryWrites=true&w=majority
Railway
Use this button:![Deploy on Railway](https://railway.app/button.svg)
You will need to login with Github![image](https://user-images.githubusercontent.com/53045046/209195213-05523b01-b733-456e-8779-cc3264a5cd82.png)
Now you will need set Enviroment Variables: _You have to set only![image](https://user-images.githubusercontent.com/53045046/209195636-73b3e542-81a0-4dc7-a479-3d7d7637d02b.png)
DRSS_BOT_TOKEN
andDRSS_DATABASE_URI
variables, others are optional.DRSS_BOT_TOKEN
is from Create Discord bot application > Step 5, click to Reset Token and insert copied token.DRSS_DATABASE_URI
is from Create MongoDB Atlas Database > Step 14-15, insert it here_If you want to change some default settings, you can change it too. Once you're done, click to Deploy:![image](https://user-images.githubusercontent.com/53045046/209197038-62217288-683d-493c-bcf3-b438fee696f7.png)
Now you will need wait your project is created and deployed.
When you see green checkmark, you can check if your Discord bot is online and if so, you can try discord commands:
![image](https://user-images.githubusercontent.com/53045046/209199593-d988caa2-b694-4676-aca4-34610e801a1a.png)