new BotMaster(botAPI, BotServant, identify, optsopt) → {BotMaster}
Create BotServant per identifier.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
botAPI |
BotAPI | ||||||||||||||||||
BotServant |
BotServant | Servant template. |
|||||||||||||||||
identify |
function | Return identifier from Update. |
|||||||||||||||||
opts |
Object |
<optional> |
Optional arguments. Properties
|
- Source:
Returns:
- Type
- BotMaster
Example
new BotAPI(botAPI, BotServant, identify)
Methods
(async) loop(optsopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
Properties
|
- Source: