Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.13 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.13 KB

feed2exec_discord_output

Just a feed2exec plugin hacked together to send Reddit RSS to a discord, using the webhooks.

Install Steps

  • Create and activate venv

    python3 -m venv <venv name>
    source <venv name>/bin/activate
  • Install packages

    pip install -r requirements.txt
  • Install plugin Copy the plugin to somewhere on the venv python path. The python path can be found with:

    python3 -c "import sys; print(sys.path)"
  • Add and configure feed

    feed2exec add <feed name> <feed url>

    Modify the feed2exec config at ~/.config/feed2exec.ini and add keys under the <feed name> header:

    • output=discord_output
    • webhook=<webhook url from discord>
    • user=<display username> (optional, omiting this will use whatever is configured in the webhook).
    • timezone=<tz str> (optional) timezone string that pytz.timezone will accept.
  • Setup Crontab

    Create a crontab to execute the following command periodically:

    /path/to/venv/bin/python3 -m feed2exec fetch