Skip to content

Getting Started

Ehsan Abbasi edited this page May 2, 2017 · 15 revisions

Requirements

  • PHP 7.0+ (PHPUnit 6 requires PHP 7. If you are not able to update PHP you should update composer.json accordingly by removing phpunit/phpunit and changing "php": ">=7" to "php": ">=YOUR_PHP_VERSION")
  • Slack team

Installation

Using composer:

composer create-project slackbot/slackbot

Then set the document root of your server to:

src/Slackbot/public

Configurations

Setting the configurations and mainly choosing the right listener type for your bot are the first things to do after the installation. You can find more about the configurations and listener types at here and here accordingly.

You can make sure the configurations are set properly by sending a /ping command and getting the response pong.

Creating a plugin

Now that your bot can interact with Slack you may extend its functionality by creating a new plugin. This is explained here.

Clone this wiki locally