Update
Hello! A semi major update has arrived with some goodies and some interface changes.
New stuff:
ProtectPageallows for the protection of any page, assuming you know the protection levels on your wiki!GenericBotnow supports uploading local files to a wiki.- JMB is now jar friendly! When creating a bot, just make sure to give it a File pointing to a family file.
- Login now works on Mediawiki 1.27+.
Major Bug Fixes:
- APIcommand
AppendTextis fixed.
Tweaks:
- Wiki family files now use proper JSON.
User,PageLocation,SimplePage, andPagehave had their constructor signatures changed.- Creating a GUI bot is now handled differently. See the README.
- All APIcommands now have a comment specifying if they are okay used raw.
Pagehas a new method,getHeaderText().GenericBothas a new method,setLogPropagation(), which controls logging propagation to the command line.
Internal:
- The default GenericBot instance uses family "Wikipedia".
- All hacked XML parsing is now modernized to use JSON + Jackson.
- APIcommands now have control at the HttpEntity level.
- GenericBot's
logInmethod has been refactored to use theAPIcommand()method. - APIcommand's
escapeTextfield has been removed. It was a hack to help with the lack of proper JSON parsing.