Content deleted Content added
Updating source) (bot |
Updating source) (bot |
||
Line 1:
Source as of 02:
== Sandbot1.py ==
Line 131:
"""
sandboxes = ("Wikipedia:Sandbox", "Wikipedia:Tutorial/Editing/sandbox", "Wikipedia:Tutorial/Formatting/sandbox",
"Wikipedia:Tutorial/Wikipedia links/sandbox", "Wikipedia:Tutorial/Citing sources/sandbox", "Wikipedia:Tutorial/Keep in mind/sandbox") def shut_off_check(page="Coal ball"):
if api.getpage(page).lower() == "true":
return True
return False
def should_be_reset(box):
Line 142 ⟶ 148:
return True
return False
if shut_off_check("User:Lowercase sigmabot II/Shutoff") is False:
api.logout()
sys.exit(0)
for sandbox in sandboxes:
Line 157 ⟶ 167:
# After it sleeps for 9 minutes without clearing the sandbox, it will be cleared regardless.
api.edit(sandbox, reset_text, "Clearing sandbox", True, True)
os._exit(0) # Exit the child process
api.logout()
|