User:Lowercase sigmabot II/Source.py: Difference between revisions

Content deleted Content added
Updating source) (bot
Updating source) (bot
Line 1:
Source as of 06:0307, 26 August 2012 (UTC).
 
== Sandbot1.py ==
Line 161:
res = tuple(api.prop(2, "revisions", titles=box.title, rvprop="timestamp"))
box_stamp = self.parse_date(res[0]["revisions"][0]["timestamp"])
return (box_stamp < (now - three_min))
 
def run(self):
if not self.is_allowed:
print("Check the shutoff page")
return
for sandbox in self.SANDBOXES:
box = self.api.page(sandbox)