Stability fixes. Version 1.2

This commit is contained in:
Ben 2025-06-30 16:05:06 -07:00
parent 25a7368798
commit d3d57d7e0a
Signed by: webmaster
GPG key ID: A5FCBAF34E6E8B50
5 changed files with 116 additions and 39627 deletions

View file

@ -1,12 +1,16 @@
# Command prefix to listen to
# Command prefix to send with
# DO NOT CHANGE THIS UNLESS YOU KNOW WHAT YOU ARE DOING
command_prefix: report
# How many seconds to wait between refreshes
refresh_delay: 60
# How many seconds to wait between refreshes.
# Bot will wait out previously-set delay until the next one. Restart if needed.
refresh_delay: 120
# Which rooms to send to, per region
send_configs:
# Coder will push reports to rooms listed under __global__ and the specific region.
sendto:
__global__:
- "!example:example.com"
arizona:
- "!example:example.com"
- "!example2:example.com"

9
compile.bash Normal file
View file

@ -0,0 +1,9 @@
#!/bin/bash
# Get filename
id=$(cat maubot.yaml | grep "id:" | tr ' ' '\n' | tail -n1)
version=$(cat maubot.yaml | grep "version:" | tr ' ' '\n' | tail -n1)
filename="$id-$version.mbp"
# Compress to zip
zip $filename *

View file

@ -1,6 +1,6 @@
maubot: 0.1.0
id: org.fiftyfiftyonearizona.reports.producerstopicenet
version: 1.1.1
version: 1.2.0
license: MIT
modules:
- producerstopicenet

File diff suppressed because it is too large Load diff

View file

@ -4,6 +4,10 @@ Please see https://git.fiftyfiftyonearizona.org/webmaster/matrix-report-document
This plugin parses the HTML of the [stopice.net](https://stopice.net) website to nab its reports. It supports a custom refresh delay, sending to multiple rooms, and sending to rooms based on region designation.
Depends on `beautifulsoup4` and `regex` packages.
This plugin supports the following:
`producerstopicenet.py` is near 40,000 lines long because I couldn't figure out how to get python to work with multiple files and I have a mapping between ZIP codes and two-letter state designations.
* Custom refresh delay.
* Sending to multiple rooms per region.
* Sending reports for any region to any number of rooms.
Depends on `beautifulsoup4` and `regex` packages.