PHP Class PhpSlackBot\Bot

Exibir arquivo Open project: jclg/php-slack-bot Class Usage Examples

Public Methods

Method Description
enableWebserver ( $port, $authentificationToken = null )
loadCatchAllCommand ( $command )
loadCommand ( $command )
loadInternalCommands ( )
loadInternalWebhooks ( )
loadWebhook ( $webhook )
run ( )
setToken ( $token )

Private Methods

Method Description
getCommand ( $data )
init ( )

Method Details

enableWebserver() public method

public enableWebserver ( $port, $authentificationToken = null )

loadCatchAllCommand() public method

public loadCatchAllCommand ( $command )

loadCommand() public method

public loadCommand ( $command )

loadInternalCommands() public method

loadInternalWebhooks() public method

loadWebhook() public method

public loadWebhook ( $webhook )

run() public method

public run ( )

setToken() public method

public setToken ( $token )