Compare commits

..

No commits in common. "main" and "1.1.1" have entirely different histories.
main ... 1.1.1

5 changed files with 39631 additions and 131 deletions

View file

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

View file

@ -1,9 +0,0 @@
#!/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.2.1
version: 1.1.1
license: MIT
modules:
- producerstopicenet

File diff suppressed because it is too large Load diff

View file

@ -4,10 +4,6 @@ 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.
This plugin supports the following:
Depends on `beautifulsoup4` and `regex` packages.
* 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.
`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.