User:Archivist

Copy-pasta
Copy-paste this at the top of a talkpage:

This will archive sections that have been inactive for 30 days. Change "30d" for other times; "24h" for 24 hours, "60d" for 60 days, etc.

Prevent archiving
The easiest way is to add (sticky) at the end of a section title. EG:

== Hi there (sticky) ==

You can also add a fake timestamp to a section. EG, the below prevents the bot from archiving until the 1st of December 2017 plus whatever you set  to:

Command-line
At 0200 UTC every day, this script runs:

pwb.py archivebot.py Talkpage/PibotHidden 2>&1 -all -v -log pwb.py archivebot.py Talkpage/Pibot 2>&1 -all -v -log

archivebot.py
To respect sticky threads, archivebot.py is edited: