BB Admin functions

BBAdmin.attractUser

Function

Description

BBAdmin.attractUser(options)

Attract new user.

Bot owner attract new user with email "test@example.com" to Bots.Business. Email must be valid.

  • User will be received email with password and information for start.

  • Bot owner can see new user in App -> Account -> Attracted Users List

  • Bot owner have rewards for each attracted user with paid Plan

This function work only for new users. For old users - no any attraction and no email.

BBAdmin.attractUser(
{ email: 'test@example.com'}
)

Also it is possible pass owner_id (If not defined - used bot owner ID)

BBAdmin.attractUser(
{
email: 'test@example.com',
owner_id: user_id //
}
)

BBAdmin.installBot

Function

Description

BBAdmin.installBot(options)

Install bot for other user

You can install copy of yours exist bot for user with email.

If user is new user - they will be attracted as yours referral.

You can install only your bot for other users

Bot can be installed as protected bot.

You can pass bot properties for new bot.

BBAdmin.installBot(
{ email: 'test@example.com',
// see bot id in the app -> Bots -> Bot
bot_id: 15025,
// bot can be installed as protected
// as_protected: true,
// you can pass properties to bot:
// bot_properties: [
// { name: 'test',
// value:'hello world',
// type:'string' }
// ]
}
)

You can also clone your own bot with this function or use BBAdmin.cloneBot

BBAdmin.cloneBot

Function

Description

BBAdmin.cloneBot(options)

Clone own bot

You can create copy of yours exist bot

Bot can be cloned as protected bot.

You can pass bot properties for new bot.

BBAdmin.cloneBot(
{
// see bot id in the app -> Bots -> Bot
bot_id: 15025,
// bot can be installed as protected
// as_protected: true,
// you can pass properties to bot:
// bot_properties: [
// { name: 'test',
// value:'hello world',
// type:'string' }
// ]
}
)

‚Äč