Secretaribot

From Noisebridge
(Difference between revisions)
Jump to: navigation, search
m (New README at github)
m (New README at github)
Line 6: Line 6:
  
 
This document is automagically created by make.py and README.intro in the Secretaribot repository at [https://github.com/dannyob/secretaribot github], which is written out to the [https://www.noisebridge.net/wiki/Secretaribot Secretaribot's page] on the Noisebridge wiki.
 
This document is automagically created by make.py and README.intro in the Secretaribot repository at [https://github.com/dannyob/secretaribot github], which is written out to the [https://www.noisebridge.net/wiki/Secretaribot Secretaribot's page] on the Noisebridge wiki.
 
=== death_to_wikispammers ===
 
 
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_readme.py ===
 
=== make_readme.py ===
Line 15: Line 11:
 
Meta-helper script to write the README in this directory to the Secretaribot page on the NB wik.
 
Meta-helper script to write the README in this directory to the Secretaribot page on the NB wik.
  
=== merge_blocked_users.py ===
+
=== www_watch.py ===
  
Merge (and then delete) all blocked users into a single, uber-spam account.
+
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.
  
'And nothing of value was lost'
+
=== death_to_wikispammers ===
  
=== next_meeting.py ===
+
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
  
Creates the next meeting page from the template on the wiki. Calculates the next ordinal number for the meeting ie (the 31811th Meeting etc)
+
=== userlistpage.py ===
 +
 
 +
Utilities for getting lists of users from mediawiki installs
  
 
=== pywikipediabot.py ===
 
=== pywikipediabot.py ===
Line 29: Line 27:
 
Looks for and loads the pywikipediabot library from environment variable $PYWIKIBOT_DIR.
 
Looks for and loads the pywikipediabot library from environment variable $PYWIKIBOT_DIR.
  
=== userlistpage.py ===
+
=== merge_blocked_users.py ===
  
Utilities for getting lists of users from mediawiki installs
+
Merge (and then delete) all blocked users into a single, uber-spam account.
  
=== www_watch.py ===
+
'And nothing of value was lost'
  
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.
+
=== next_meeting.py ===
 +
 
 +
Creates the next meeting page from the template on the wiki. Calculates the next ordinal number for the meeting ie (the 31811th Meeting etc)
  
 
=== arooga.agi - call a bunch of people to 311 conf call ===
 
=== arooga.agi - call a bunch of people to 311 conf call ===

Revision as of 00:55, 10 September 2011

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

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

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.

Contents

make_readme.py

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

www_watch.py

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.

death_to_wikispammers

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

userlistpage.py

Utilities for getting lists of users from mediawiki installs

pywikipediabot.py

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

merge_blocked_users.py

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

'And nothing of value was lost'

next_meeting.py

Creates the next meeting page from the template on the wiki. Calculates the next ordinal number for the meeting ie (the 31811th Meeting etc)

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

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

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

Personal tools