Updating code to support endpoints per reigon and __global__

This commit is contained in:
Ben 2025-06-24 15:29:32 -07:00
parent 11152ae8de
commit 24f6f25506
3 changed files with 88 additions and 70 deletions

View file

@ -2,32 +2,29 @@
# DO NOT CHANGE THIS UNLESS YOU KNOW WHAT YOU ARE DOING
command_prefix: report
# Whether or not the bot should pay attention to only specific state/territory designators
# This bot will include the designator in the pushed notificaion if this is disabled,
# or if the allowed_locations contains multiple strings
allowed_locations_enabled: false
allowed_locations:
- arizona
- california
# Which accounts should be paid attention to on a state/territory-by-state/territory basis.
# If the state/territory is not in allowed_senders, then the bot will allow all senders
# Otherwise only listed senders
allowed_senders:
# Which regions the bot should pay attention to
# Additionally, optionally whitelist specific accounts for each region
allowed_regions:
foo:
- "@reports:fiftyfiftyonerarizona.org"
bar:
- "@reports:example.org"
- "@reports:example.com"
buzz:
aaa:
# Where and how the plugin will send the data to
server_url: "https://ntfy.sh"
server_topic: "changeMe"
# Bot-specific configurations per region
region_configs:
arizona:
# Where and how the plugin will send the data to
server_url: "https://ntfy.sh"
server_topic: "changeme"
# If the plugin should use a username and password to send notifications
server_use_authentication: false
server_username: "foo"
server_password: "bar"
# If the plugin should use a username and password to send notifications
server_use_authentication: true
server_username: "no"
server_password: "way"
# If this bot should send a reaction to the message if the notification was successful
# If this bot should send a reaction to the message
# if the notification was successful
send_reaction: true