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

Content deleted Content added
Updating source) (bot
Updating source) (bot
Line 1:
 
Source as of 0123:4843, 316 May 2012 (UTC).
 
== Sandbot1.py ==
Line 27:
 
from wikibot import WikiBot
from passwords import lcsb2
import sys
import os
Line 69 ⟶ 70:
 
user = "Lowercase sigmabot II"
pw = lcsb2.replace("\n", "")
pw_file = open(os.path.expanduser("~/wikibot/password.txt"), "r")
pw = pw_file.read().replace("\n", ""); pw_file.close(); del pw_file;
api = WikiBot("http://en.wikipedia.org/w/api.php")
if shut_off_check("User:Lowercase sigmabot II/Shutoff") is False:
Line 102:
from datetime import datetime, timedelta
from threading import Thread
from passwords import lcsb2
import time
import sys
Line 107 ⟶ 108:
 
user = "Lowercase sigmabot II"
pw = lcsb2.replace("\n", "")
pwfile = open(os.path.expanduser("~/wikibot/password.txt"), "r")
pw = pwfile.read().replace("\n", ""); pwfile.close(); del pwfile;
api = WikiBot("http://en.wikipedia.org/w/api.php")
api.login(user, pw)