User:Pizzabot/archivescript

Workable substitute for whatever Pibot runs, modified from here. No warrenty is included in this product, fix the wiki if you break it, yada yada yada.

Changes from linked script:


 * Addition of the line in function   to handle sticky threads.
 * Line  changed to  This changes what is put as the header to new archive pages from some template we don't have, forcing it to use talkpage and rendering useless the   template option.

Program needs to be executed with  to cope with both templates, where 'pizzabot.py' is what you call the source file and you can substitute however you normally execute python files for the part before that.

Code, in full: