Stability fixes. Version 1.2
This commit is contained in:
parent
25a7368798
commit
d3d57d7e0a
5 changed files with 116 additions and 39627 deletions
|
@ -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
9
compile.bash
Normal 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 *
|
|
@ -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
|
||||
|
|
39696
producerstopicenet.py
39696
producerstopicenet.py
File diff suppressed because it is too large
Load diff
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue