LoginSignup
1
2

More than 5 years have passed since last update.

Hubotのローカル実行時に、ユーザー名/IDを指定する方法

Posted at
module.exports = (robot) ->
  robot.respond /path/i, (msg) ->
    msg.message.user.name
    msg.message.user.id
    ...

のように、メッセージを送ってきた相手の名前やIDを取得するような処理をローカルで確認したい場合に、任意の名前/IDを指定する方法です。

名前を指定

HUBOT_SHELL_USER_NAME='hoge' bin/hubot

IDを指定

HUBOT_SHELL_USER_ID='xxx' bin/hubot

詳しくは本家ドキュメントのこちら

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