Secretaribot

From Noisebridge
Jump to navigation Jump to search
Noisebridge | About | Visit | 272 | Manual | Contact | Guilds | Resources | Events | Projects | 5MoF | Meetings | Donate | (Edit)
Resources | Where to find things | Network | AV | Audio | Library | Servers | Printers | Sustenance | Edit
Servers | DevOps | Pegasus | Unicorn | Shed | Brony | Secretaribot | edit

Secretaribot is actually a few (quite small) python scripts, which, along with Noisebot, help out the Noisebridge collective with housekeeping tasks.

"Go away or I will replace you with a very small shell script"

This document is automagically created by make.py and README.intro in the Secretaribot repository at github, which is written out to the Secretaribot's page on the Noisebridge wiki.

General instructions[edit]

For the wiki tools, you'll need the pywikipediabot library stored somewhere, and point the environment variable PYWIKIBOT_DIR at it. Copy the 'lib/noisebridge_family.py' into its 'families' directory.

death_to_wikispammers[edit]

Usage: death_to_wikispammers [username] Downloads a list of recently created users, starting at the username given. One by one, shows their user page via STDOUT. Delete user page and block for spam? it asks, [y/n] If yes, deletes user page, blocks user for spamming If no, goes onto next

make_list_rss.py[edit]

Makes an RSS feed of all the noisebridge mailing lists.

Uses a noisebridge fork of mailman-archive-scraper, kept at https://github.com/dannyob/mailman-archive-scraper/tree/noisebridge

and added as a git submodule to this collection.

make_readme.py[edit]

Meta-helper script to write the README in this directory to the Secretaribot page on the NB wik.

merge_blocked_users.py[edit]

Merge (and then delete) all blocked users into a single, uber-spam account.

'And nothing of value was lost'

next_meeting.py[edit]

Creates the next meeting page from the template on the wiki. Calculates the next ordinal number for the meeting ie (the 31811th Meeting etc) Redirects 'Next meeting' and 'Last meeting' pages to point to correct minutes.

pywikipediabot.py[edit]

Looks for and loads the pywikipediabot library from environment variable $PYWIKIBOT_DIR.

userlistpage.py[edit]

Utilities for getting lists of users from mediawiki installs

www_watch.py[edit]

Goes out and checks a Wikipedia table full of links, and saves the etags from the headers; by updating these etags on the page, it will trigger a mediawiki page change whenever any of the other pages change. If you watch that page, you'll be effectively watching all the other external pages.

arooga.agi - call a bunch of people to 311 conf call[edit]

Usage: /etc/asterisk/agi-bin/arooga.cgi

Called by Asterisk dialplan, extracts callerid safely, sends it onto an email alias, records info in syslog.