LoginSignup
0
1

More than 5 years have passed since last update.

Azure Function App で Rocket.Chat Bot を作る

Last updated at Posted at 2016-04-17

あえてね。
ただの遊びです。

Function App を作成する

Azureポータルから、新規 -> Web + モバイル -> Function App を選択。
ScreenClip.png

アプリ名やらプランやらを好きに設定して、作成。
ScreenClip.png

Function を作成。
テンプレートがたくさん表示されるのでやりたい事に応じて。
今回は Generic WebHook を使う。
ScreenClip.png

単純なメッセージを返すようにコードを変更。
ScreenClip.png

Integrate タブでアウトプットを設定できるが、今回は変更の必要なし。
Function URL をコピーしておく。
ScreenClip.png

Rocket.Chat に WebHook を登録

RocketChatへの投稿をトリガーにしたいので、Outgoing WebHook を登録。

トリガーになる言葉とURLを設定する。URLは Azure Function のURL。
ScreenClip.png

チャンネルや投稿ユーザーは適宜作成しておく事。
保存して完成。
ScreenClip.png

0
1
0

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
0
1