Skip to content

v1.6.2

Compare
Choose a tag to compare
@double-beep double-beep released this 23 Oct 14:38
· 124 commits to master since this release

Stable version 1.6.2 of Belisarius.

Features added

  • Include information in the .properties file rather than in the database.
  • Add maven unit testing.
  • Add option to log messages instead of sending them to chat.
  • Optionally connect to Higgs.
  • Include the thresholds SmokeDetector uses for the FewUniqueCharacters reason.
  • Connect to Redunda.

Bugfixes

  • Rewrite most of the code in Belisarius.java because the logic was flawed.
  • Fix NullPointerExceptions which were thrown mostly because of the API responses (empty fields, etc.)
  • Fix deprecation notice in org.google.code.gson (use static method JsonParser.parseString).
  • Properly handle multiple blacklisted/offensive words in Higgs reports. Previously, they were merged into one.
  • Check if an offensive word is saved before attempting to do so. I somehow forgot that!
  • Return null instead of throwing an IOException when a page to /revisions/guid/view-source 404s. IOException is kinda more general.
  • Correctly handle few unique ASCII characters!
  • Correctly handle the checking of a deleted post.

Improvements

  • Update dependencies
  • Simplifications (remove redundant code, simply if and return statements).
  • Efficient iterations over hashmap.
  • Improve variable readability.
  • Add comments.
  • Use the final modifier wherever possible.
  • Cleanup and remove files with 1-2 methods.
  • Use LOGGER.error rather than LOGGER.info on errors.
  • Log more information.
  • Rename StackOverflowUser to User,
  • Simplify PropertyService to use one method (getProperty(String propertyName)).
  • Simplify RepeatedWordFilter using Arrays.asList().
  • Simplify the regex for chat message sanitization. Use [abc] instead of expensive (a|b|c).

Documentation changes

  • Add information on how to run the bot.
  • Add information on the different types of feedbacks.
  • Explain what Higgs and Hippo are.
  • Add a page about autocomments.
  • Explain filters in more detail.
  • Change website theme to a better one.
  • Fix typos.

Special thanks to Scratte for many of the bugfixes applied!