Compare commits
No commits in common. "main" and "1.1.1" have entirely different histories.
5 changed files with 39631 additions and 131 deletions
|
@ -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
|
# DO NOT CHANGE THIS UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||||
command_prefix: report
|
command_prefix: report
|
||||||
|
|
||||||
# How many seconds to wait between refreshes.
|
# How many seconds to wait between refreshes
|
||||||
# Bot will wait out previously-set delay until the next one. Restart if needed.
|
refresh_delay: 60
|
||||||
refresh_delay: 120
|
|
||||||
|
|
||||||
# Which rooms to send to, per region
|
# Which rooms to send to, per region
|
||||||
# Coder will push reports to rooms listed under __global__ and the specific region.
|
send_configs:
|
||||||
sendto:
|
|
||||||
__global__:
|
|
||||||
- "!example:example.com"
|
|
||||||
arizona:
|
arizona:
|
||||||
- "!example:example.com"
|
- "!example:example.com"
|
||||||
- "!example2:example.com"
|
- "!example2:example.com"
|
||||||
|
|
|
@ -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 *
|
|
|
@ -1,6 +1,6 @@
|
||||||
maubot: 0.1.0
|
maubot: 0.1.0
|
||||||
id: org.fiftyfiftyonearizona.reports.producerstopicenet
|
id: org.fiftyfiftyonearizona.reports.producerstopicenet
|
||||||
version: 1.2.1
|
version: 1.1.1
|
||||||
license: MIT
|
license: MIT
|
||||||
modules:
|
modules:
|
||||||
- producerstopicenet
|
- producerstopicenet
|
||||||
|
|
39709
producerstopicenet.py
39709
producerstopicenet.py
File diff suppressed because it is too large
Load diff
|
@ -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 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:
|
|
||||||
|
|
||||||
* 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.
|
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.
|
Loading…
Add table
Add a link
Reference in a new issue