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

Content deleted Content added
Updating source) (bot
Updating source) (bot
Line 1:
Source as of 1821:2338, 26 August 2012 (UTC).
 
== Sandbot1.py ==
Line 153:
# will clear the box regardless.
print("Done with sleeping, clearing {!r}".format(box.title))
self.api.login("Lowercase sigmabot II", ceterach.passwords.lcsb2)
self.api.set_token("edit")
self.api.edit(box.title, reset_text, "Clearing sandbox) (bot", bot=True, force=True)
Line 182 ⟶ 184:
# The bot will fork, and continue on to the next sandbox
# while the child process waits 3 to 9 minutes
# if os.fork() == 0: # Child process
# self.wait(box) # Wait takes place in the child process
# os._exit(0) # Exit the child process
# threading.Thread(target=self.wait, args=(box,)).start()
if __name__ == "__main__":
main()
 
</source>