Helper API

Table of contents

Helper API methods


Helper.sleep(seconds);

Makes the bot sleep/wait/do nothing for a specified amount of seconds.

Helper.msleep(milliseconds);

Makes the bot sleep/wait/do nothing for a specified amount of milliseconds.

Helper.playWavSound(path_to_wav_file, blocking);

Plays the WAV sound file procided by path_to_wav_file either blocking (waiting) or not.

Helper.stopWavSound();

Stops all playing WAV sounds started by any bot.

Helper.log(a, b, c...);

The log method tries to convert all it’s parameters to strings. Those string are then joined separated by a space and append to the bots log field.

This method is both usefull for debugging and informating the script user about what currently happens or what actions to take.