addBot

Equivalent to pressing the “Add Bot” button in the lobby. Returns a promise that resolves to an instance of the class you provided in botOptions.botClass parameter in insertCoin.

Signature

function addBot(): Promise<Bot>

Returns

Promise<Bot>

Usage

const bot = await addBot();
console.log(`Bot ${bot.id} added`);