Content deleted Content added
Updating source) (bot |
m Replaced deprecated <source> tags with <syntaxhighlight> |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1:
Source as of
== Sandbot1.py ==
Line 17:
If the template is present, it does nothing.
<
#!/home/sigma/.local/bin/python3
# -*- coding: utf-8 -*-
Line 27:
import ceterach
import mwparserfromhell as mwparser
Line 85:
main()
</syntaxhighlight>
== Sandbot2.py ==
Line 98:
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■--></pre>
<
#!/home/sigma/.local/bin/python3
# -*- coding: utf-8 -*-
Line 112:
import ceterach
reset_text = "{{subst:Sandbox reset}}"
Line 167:
# will clear the box regardless.
print("Done with sleeping, clearing {!r}".format(box.title))
self.api.login("Lowercase sigmabot II",
self.api.set_token("edit")
text = tpl_reset_text if box.namespace == 10 else reset_text
Line 210:
</syntaxhighlight>
|