Releases: SOBotics/Belisarius
Releases · SOBotics/Belisarius
v1.8.0
v1.6.2
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
NullPointerException
s which were thrown mostly because of the API responses (empty fields, etc.) - Fix deprecation notice in
org.google.code.gson
(use static methodJsonParser.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 anIOException
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
andreturn
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 thanLOGGER.info
on errors. - Log more information.
- Rename
StackOverflowUser
toUser
, - Simplify
PropertyService
to use one method (getProperty(String propertyName)
). - Simplify
RepeatedWordFilter
usingArrays.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!
v1.0
First (stable) version of Belisarius.
The bot can now:
- Query the SE API to find recently created posts and checks them for potential vandalism.
- Save the reports in both a local SQLite database and Higgs.
- Accept
tp
orfp
feedback and stores it in both the database and in Higgs. - Check a post for vandalism and report it.
The documentation with the commands is available in the GitHub page. The bot is running on the SOBotics chat room.