Alliance Auth module to post news from RSS feeds to your Discord
Project description
Alliance Auth RSS to Discord
A simple app to post selected RSS feeds to your Discord.
Contents
Installation
Important: Please make sure you meet all preconditions before you proceed:
- Alliance Auth RSS to Discord is a plugin for Alliance Auth. If you don't have Alliance Auth running already, please install it first before proceeding. (see the official AA installation guide for details)
- Alliance Auth RSS to Discord needs AA-Discordbot to interact with your Discord server. Make sure it is installed and configured before installing this app.
Step 0.5 - Install AA-Discordbot
In order for this app to work, you need to install and configure AA-Discordbot first. Read the instructions how to do so in the README of AA-Discordbot.
Step 1 - Install the Package
Make sure you are in the virtual environment (venv) of your Alliance Auth installation Then install the latest releast directly from PyPi.
pip install aa-rss-to-discord
Step 2 - Configure Alliance Auth
This is fairly simple, just add the following to the INSTALLED_APPS
of your local.py
Configure your AA settings (local.py
) as follows:
- Add
"aa_rss_to_discord",
toINSTALLED_APPS
- Add the scheduled task
CELERYBEAT_SCHEDULE["aa_rss_to_discord_fetch_rss"] = { "task": "aa_rss_to_discord.tasks.fetch_rss", "schedule": crontab(minute="*/5"), }
Step 3 - Finalize the Installation
Run migrations to finalize the installation
python manage.py migrate
Finally restart your supervisor services for AA.
Step 4 - Configure your RSS Feeds
First you need to set up the Discord Server and Channels. For this you go in your admin backend to the Discordbot settings and enter the needed information there.
When done, you can set up your RSS feeds. This can be done in the setting of this app, still in your admin backend. Create a new RSS Feed entry, enter the name, url and select the Discord channel it should be posted to. Once done, save it.
Discord Bot Commands
The following commands are available for the Discord bot to manage RSS/Atom feeds:
Command | Options | What it does |
---|---|---|
!rss_add <rss_url> <rss_name> |
- rss_url - The URL of the RSS/Atom feed- rss_name - A Name for the RSS/Atom Feed |
Adding a RSS/Atom fedd to the current channel |
!rss_delete <rss_feed_id> |
rss_feed_id - The ID of the RSS/Atom feed you want to remove |
Remove a RSS/Atom feed from the current Discord channel |
!rss_disable <rss_feed_id> |
rss_feed_id - The ID of the RSS/Atom feed you want to disable |
Disable an enabled RSS/Atom feed for the current Discord channel |
!rss_enable <rss_feed_id> |
rss_feed_id - The ID of the RSS/Atom feed you want to enable |
Enable a disabled RSS/Atom feed for the current Discord channel |
!rss_list |
None | List all RSS/Atom feeds for the current Discord channel |
Updating
To update your existing installation of Alliance Auth RSS to Discord, first enable your virtual environment (venv) of your Alliance Auth installation.
pip install -U aa-rss-to-discord
python manage.py migrate
Finally restart your supervisor services for AA.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aa_rss_to_discord-1.4.2.tar.gz
.
File metadata
- Download URL: aa_rss_to_discord-1.4.2.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2f05146e05ff77a0af4a9704678170a27ff3477f6e595594e33d74600269419 |
|
MD5 | e54a470a5a9882c521a958b59c668ebc |
|
BLAKE2b-256 | 74bc16eb78c6d1163570fe072bcbae7d3818afff1d8cb4239cc13498725f374c |
File details
Details for the file aa_rss_to_discord-1.4.2-py3-none-any.whl
.
File metadata
- Download URL: aa_rss_to_discord-1.4.2-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d4287b673c01de76ffdbb63a30c8ace7a01edf10666a7309626df786dfbc8b |
|
MD5 | cefe73590e7c2e424ba71cc0ec651b22 |
|
BLAKE2b-256 | 2d3434dd7bab18f4d1d06f8d74bb2d4ad76eae97d5da80f2437fb265951c0e41 |