MonitoRSS
  • Welcome to v6.0.0
  • Setting Up (Self Hosting)
    • Bot
    • Web Interface
      • Setting up HTTPS
    • Docker
    • Existing Bot/NPM
    • Process Managers
    • Staying Updated
  • Configuration
    • Bot Config
      • Schedules
    • Web Interface Config
    • Environment Variables
    • Discord Commands
    • MongoDB vs Databaseless
  • Bot Customizations
    • Placeholders
    • Text
    • Embed
    • Filters
      • Regular
      • Regex
    • Subscribers
    • Dates and Timezone
    • Webhooks
  • Advanced Bot Customizations
    • Custom Comparisons
    • Filtered Message Formats
    • Custom Regex Placeholders
  • More Info
    • FAQ
Powered by GitBook
On this page
  • Running the Bot
  • Simple Way
  • Programmatically
  • Using Structures

Was this helpful?

  1. Setting Up (Self Hosting)

Existing Bot/NPM

PreviousDockerNextProcess Managers

Last updated 1 year ago

Was this helpful?

This documentation site is deprecated. Please visit the README of for hosting instructions.

Running the Bot

Simple Way

the bot and use the same bot token.

Programmatically

Install monitorss:

npm install monitorss

or directly from dev branch for the latest updates via the format npm install author/repo#branch:

npm install synzen/monitorss#dev
const MonitoRSS = require('monitorss')

const options = {
  setPresence: true,
  // Config format is same as config.json
  config: {
    bot: {
      token: "abc123"
    }
  }
}

const drss = new MonitoRSS.ClientManager(options)
drss.start()

ClientManager Options

An object can be passed in as the first parameter of ClientManager,

Name

Type

Description

setPresence

Boolean

Set the bot's presence (online, dnd, etc.)

schedules

Object

Custom schedules to put certain URLs on a different retrieval cycle. See below for more info.

config

String

Configuration object whose structure matches that of config.bot.json.

Custom Schedules

{
    feed43: {
        refreshRateMinutes: 60,
        keywords: ["feed43"]
    },
    otherName: {
        refreshRateMinutes: 30,
        keywords: ["other", "words"]
    }
]

Using Structures

If you don't want to run the bot and just want to have access to its structures:

npm install monitorss
const Feed = require('monitorss').Feed

async function myfunc() {
    await MonitoRSS.setupModels(mongoURI, mongoOptions)
    // Do what you want with Feed now
}

is passed as an object of objects in the format of

https://github.com/synzen/MonitoRSS
Setup
Custom schedules