RSS consumer
This commit is contained in:
parent
beefb8c73e
commit
696ee3b4d0
5 changed files with 197 additions and 136 deletions
|
@ -2,6 +2,10 @@
|
|||
# DO NOT CHANGE THIS UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||
command_prefix: report
|
||||
|
||||
# Feed URL
|
||||
# This should point to a helpful page about the feeds. Required for RSS to function
|
||||
feed_url: "https://example.org"
|
||||
|
||||
# Which regions the bot should pay attention to.
|
||||
# Pass through empty list to allow all senders for a region.
|
||||
# Add a list of MatrixIDs to whitelist senders for a region.
|
||||
|
@ -16,22 +20,14 @@ allowed_regions:
|
|||
buzz:
|
||||
aaa:
|
||||
|
||||
# Bot-specific configurations per region
|
||||
# Code will assume no authentication if either username or password are missing.
|
||||
# Use __global__ to specify an endpoint for all regions.
|
||||
# Code will push to both __global__ and region-specific endpoint.
|
||||
region_configs:
|
||||
arizona:
|
||||
# Where and how the plugin will send the data to
|
||||
server_url: "https://ntfy.sh"
|
||||
server_topic: "changeme"
|
||||
# List of regions to serve feeds to.
|
||||
# YOU MUST SPECIFY EVERY REGION.
|
||||
# __global__ is a global feed, not serving feeds for all regions.
|
||||
serve_regions:
|
||||
- "__global__"
|
||||
- "Arizona"
|
||||
- "California"
|
||||
|
||||
# If the plugin should use a username and password to send notifications
|
||||
username: "no"
|
||||
password: "way"
|
||||
|
||||
# If this bot should send a reaction to the message
|
||||
# Will send 👍 on successful POST to NTFY, and 👎 on failiure.
|
||||
# Failiure to post to either the region specific, or __global__ endpoint is
|
||||
# considered complete failiure.
|
||||
# If this bot should send a reaction to the message.
|
||||
# Will send 👍 on successful storage in database, and 👎 on failiure.
|
||||
send_reaction: true
|
Loading…
Add table
Add a link
Reference in a new issue