Planning the future of Botwiki! - Help us bring Botwiki up to date, contribute to our strategy discussion, add bot scripts, and contribute manuals, guides, and tutorials! Almost anything related to bots, particularly those used to edit mediawiki, is welcome.
UNABLE TO EDIT? - We've experienced attacks by spambots lately and now require you to confirm your e-mail before you can edit (go to your preferences, enter an e-mail address, and request a confirmation e-mail, then go to your e-mail and click on the confirmation link). We also require new accounts to make a few edits and wait a few minutes before before you can create a page; however, if this is a problem contact us in #botwiki and we can manually confirm your account. Sorry for the inconvenience.
Manual:DrTrigonBot scripts
This is a set of some scripts (used as w:de:User:DrTrigonBot) with additional extensions for the pywikipedia framework (such as enhanced API support, multi-page API support, a.o.). Written by DrTrigon.
Note: You can download the latest version available from here: http://toolserver.org/~drtrigon/source/pywikipedia/
URLs to current implementations:
- German Wikipedia: http://de.wikipedia.org/wiki/Benutzer:DrTrigonBot
Description of basic functionality:
- runbotrun.py: which is the main script and calls...
- clean_user_sandbox.py: cleans user specific sandboxes but only for users that are in a list and use a special template.
- sum_disc.py: gather and summarizes all relevant changes in every discussion thread a user contributed to (this functionally is also given by LiquidThreads).
- replace_tmpl.py: on command replaces templates automatically, or just simulates the actions to take.
- mailer.py: mails a specfic wiki page to a given wiki user at given frequency.
- subster.py: substitutes/copies external data (from any url) to special tags within the wiki text. (sort of dynamic updating)
- dtbext/..
- ../__init__.py
- ../dtbext_config.py: 'dtbext.config' enhances 'config'
- ../dtbext_date.py: 'dtbext.date' enhances 'date'
- ../dtbext_pagegenerators.py: 'dtbext.pagegenerators' enhances 'pagegenerators'
- ../dtbext_query.py: 'dtbext.query' enhances 'query'
- ../dtbext_wikipedia.py: 'dtbext.wikipedia' enhances 'wikipedia'
- sum_disc_conf.py: configuration file for sum_disc.py
- panel.py: ...
- logstat_local.py: ...
- substersim.py: ...
- mailerreg.py: ...
Guide
Setup dtbext package guide:
- create dir structure, copy into directory, test if it's working...
Setup clean_user_sandbox sub bot guide:
- create dir structure, setup dtbext, setup template, setup user list, test if it's working...
- sub bot can be runned stand-alone or all together with main bot
Setup sum_disc sub bot guide:
- create dir structure, setup dtbext, setup template, setup user list, setup config 'sum_disc_conf.py', test if it's working... (use debug mode)
- sub bot can be runned stand-alone or all together with main bot
Setup mailer sub bot guide:
- create dir structure, setup dtbext, setup template, test if it's working...
- sub bot can be runned stand-alone or all together with main bot
Setup subster sub bot guide:
- create dir structure, setup dtbext, setup template, test if it's working...
- sub bot can be runned stand-alone or all together with main bot
Setup runbotrun main bot (finally!) guide:
- create dir structure, setup dtbext, setup sub bots, test if it's working, setup cron job, test error handling (mail, etc.)...
Setup cgi bot status script guide:
- setup 'panel.py' cgi script
- test 'logstat_local.py'...
- setup 'substersim.py' cgi script
- setup 'mailerreg.py' cgi script
Example:
- ...
Known issues/FIXMEs
- look at w:de:Benutzer:DrTrigonBot/ToDo-Liste#BUGS
- contact w:de:Benutzer:DrTrigon
Contact
If you are intrested in this scripts and have further questions, which is very likely at the current stage of this manual, please contact me at w:de:Benutzer:DrTrigon, thank you very much!