Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to host MonitoRSS on Railway (fastest setup and without web dashboard) #295

Open
MrJaroslavik opened this issue Dec 22, 2022 · 0 comments

Comments

@MrJaroslavik
Copy link

MrJaroslavik commented Dec 22, 2022

Inspired by: #95.

Create Discord bot application

  1. Go to https://discord.com/developers/applications, click to New Application
    image

  2. Name it and click to Create
    image

  3. Navigate to Bot tab:
    You can also see Application ID, you will need it when you invite bot to your server.
    image

  4. Click to Add Bot and confirm you want do it:
    image
    image

  5. Add avatar of your bot:
    You can also see Token, you will need it later. Do not share this token with anyone else!!!!
    image

  6. If you don't want others to be able to add your bot turn off the Public Bot setting.
    image

  7. To be able ot use bot commands, turn on all these settings:
    image

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=bot

Create 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:

  1. On Shared column, click to Create:
    image

  2. You can customize it, but you're safe if you will just click to Create Cluster:
    image

  3. Create your database account and set username and password and click to Create User:
    image

  4. Navigate to Network Access tab and click to Add IP Address:
    image

  5. Click to Alow access from anywhere and Confirm:
    image

  6. Navigate to Database tab and click to Connect:
    image

  7. You will see your connection string, copy it and replace <password> with you password you've set in Step 3:
    image

  8. 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

  1. Use this button:
    Deploy on Railway

  2. You will need to login with Github
    image

image

  1. 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

    image

  2. If you want to change some default settings, you can change it too. Once you're done, click to Deploy:
    image

  3. Now you will need wait your project is created and deployed.

  4. When you see green checkmark, you can check if your Discord bot is online and if so, you can try discord commands:
    image
    image
    image

@MrJaroslavik MrJaroslavik changed the title How to host MonitoRSS on Railway (for free, fastest setup and without web dashboard) How to host MonitoRSS on Railway (fastest setup and without web dashboard) Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant