LoginSignup
121

More than 5 years have passed since last update.

Slackの新しいフレームワークBotkitを試してみる

Last updated at Posted at 2015-12-16

今日、Slackプラットフォームの発表がありました。

その記事の中に新しいSlackのフレームワークBotkitなるものがあったので試してみました。

Botkitの準備

まずはGitHubからcloneしてきます。

$ git clone git@github.com:howdyai/botkit.git

Slackの設定

以下のリンクからお使いのSlackのチームにbotユーザを追加します。

適当にbotの名前を入力します。

01.png

画像をアップロードして「Save Integration」をします。

02.png

API Tokenをコピーして、先ほどcloneしたリポジトリに移動して以下のコマンドを実行します。

$ cd botkit
$ token=REPLACE_THIS_WITH_YOUR_TOKEN node bot.js

そうするとdarth_vaderがオンになります。

3.png

試す

適当なチャンネルにbotを招待します。

4.png

あとは、そのチャンネルでbotにメンションするとなんか返してくれます!

5.png

まとめ

いままで、Hubot使っていたのですが、それに比べるとだいぶ気軽に試せていいですね。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
121