Belisarius

Logo

Belisarius is a bot that detects vandalism on Stack Overflow.

View the Project on GitHub SOBotics/Belisarius

Belisarius

Background

This bot has been developed in an attempt to help capture possible vandalism. This includes:

Why do we need the bot?

The point of the bot is to help identify bad edits and/or potential vandalism made to posts in real time so that the changes can be quickly rolled back.

Implementation

The bot queries the Stack Exchange API once every minute to get a list of the latest posts. There is logic to check that the post has been edited and that it has been edited by the author.

The post_id from each post is then taken and the Stack Exchange API is again queried for the list of revisions. To limit calls we utilise the functionality of pushing multiple ids into the API and then logic is in place to ensure we are using the latest revision.

Edits can be made up of a title change, body change of a question, tag changes or changes made to the body of an answer. Currently tags are not checked. Instead the title, question body and answer body depending on what has been edited are run through filters, as is the edit summary.

Accounts

The project is running under the user Belisarius in the SOBotics room. A sample image of a report is:

sample report

The source code is available on GitHub and suggestions are welcome.

Quick Links