Skip to content

Update

Choose a tag to compare

@Choco31415 Choco31415 released this 20 Jun 22:28
· 17 commits to master since this release

Hello! A semi major update has arrived with some goodies and some interface changes.

New stuff:

  • ProtectPage allows for the protection of any page, assuming you know the protection levels on your wiki!
  • GenericBot now 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 AppendText is fixed.

Tweaks:

  • Wiki family files now use proper JSON.
  • User, PageLocation, SimplePage, and Page have 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.
  • Page has a new method, getHeaderText().
  • GenericBot has 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 logIn method has been refactored to use the APIcommand() method.
  • APIcommand's escapeText field has been removed. It was a hack to help with the lack of proper JSON parsing.