Upgrade to version 1.2
This commit is contained in:
parent
2b6dafbd37
commit
574eab2b06
5 changed files with 94 additions and 50 deletions
|
@ -2,24 +2,37 @@
|
|||
# DO NOT CHANGE THIS UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||
command_prefix: report
|
||||
|
||||
# Which regions the bot should pay attention to
|
||||
# Additionally, optionally whitelist specific accounts for each region
|
||||
# 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.
|
||||
# Use __global__ to refer to all regions.
|
||||
# Code looks to see if a sender is allowed for either a specific region or __global__.
|
||||
allowed_regions:
|
||||
__global__:
|
||||
- "@reports:fiftyfiftyonearizona.org"
|
||||
foo:
|
||||
- "@reports:fiftyfiftyonearizona.org"
|
||||
- "@reports:fiftyfiftyonerarizona.org"
|
||||
bar:
|
||||
- "@reports:example.org"
|
||||
- "@reports:example.com"
|
||||
buzz:
|
||||
aaa:
|
||||
|
||||
# Bot-specific configurations
|
||||
api_url: "https://example.org/wp-json/wp/v2/yourposttype"
|
||||
api_user: "youruser"
|
||||
api_token: "your token"
|
||||
# Bot-specific configurations per region
|
||||
# Use __global__ to specify an endpoint for all regions.
|
||||
# Code will push to both __global__ and region-specific endpoint.
|
||||
region_configs:
|
||||
__global__:
|
||||
# Bot-specific configurations
|
||||
api_url: "https://example.org/wp-json/wp/v2/yourposttype"
|
||||
api_user: "youruser"
|
||||
api_token: "your token"
|
||||
arizona:
|
||||
# Bot-specific configurations
|
||||
api_url: "https://example.org/wp-json/wp/v2/yourposttype"
|
||||
api_user: "youruser"
|
||||
api_token: "your token"
|
||||
|
||||
# If this bot should send a reaction to the message
|
||||
# if the notification was successful
|
||||
# Will send 👍 on successful creation of post, and 👎 on failiure.
|
||||
# Failiure to post to either the region specific, or __global__ endpoint is
|
||||
# considered complete failiure.
|
||||
send_reaction: true
|
Loading…
Add table
Add a link
Reference in a new issue