Skip to content

Working on Tillerinobot

Tillerino edited this page Aug 29, 2016 · 1 revision

Video

I put a video on YouTube that shows everything from getting eclipse to starting the local console interface.

Building Tillerinobot

Tillerinobot is a regular maven project. It uses lombok, so there might be additional steps required if you're using an IDE. See http://projectlombok.org/download.html for more info. In the video above, the installation is demonstrated for eclipse.

Running Tillerinobot

If you want to test Tillerinobot, there are two problems:

  1. You don't have the implementation of BotBackend used by the instance of Tillerinobot that operates as the osu! player Tillerino.
  2. You probably don't want to connect to the osu! IRC server just to test things.

I invested some time to provide mocks of the necessary classes so anybody can thoroughly test Tillerinobot without the external resources.

  1. The TestBackend class fakes all necessary data (including recommendations) and saves/loads your user-data in human-readable JSON, so you can mess with it. Note that the generation of the beatmaps is seeded. This means that although it appears random, the generated data for a fixed beatmap id will always be the same - on any computer.

  2. The LocalConsoleTillerinobot class allows you to interact with Tillerinobot through the console while drawing data from TestBackend. It generates IRC events from your actions on the console and sends them to IRCBot.

Interacting with LocalConsoleTillerinobot

Clone this wiki locally