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

Content deleted Content added
Updating source) (bot
Updating source) (bot
Line 1:
Source as of 09:3207, 929 November 2013 (UTC).
 
== Sandbot1.py ==
Line 24:
import sys
import os
import builtins
 
import ceterach
Line 29 ⟶ 30:
 
import mwparserfromhell as mwparser
 
builtins.print = lambda *args, **kwargs: None
 
def main():
Line 165 ⟶ 168:
# there's probably a way to use MediaWiki.iterator(), but too lazy
res = self.api.call(action="query", prop="revisions", titles=box.title, rvprop="timestamp", limit="2")
str_stamp = res["query"]["pages"][tuplenext(iter(res["query"]["pages"].keysvalues())[0]])["revisions"][0]["timestamp"]
box_stamp = self.parse_date(str_stamp)
if box_stamp < (now - three_min):