私は、hubot & hubot-fbアダプターを使ってfacebook messengerボットを開発しています。 基本設定はすべて&が完璧に動作しています。しかし、ボットとチャットをするためには、すべてのコマンドでhubotを追加する必要があります。 Facebookのチャットの場合、それはあまり意味がありません。メッセージごとにハッボットを追加せずにハブトにアクセスするにはどうすればよいですか?
user: hubot ping
bot: PONG
user: hubot the rules
bot: 0. A robot may not harm humanity, or, by inaction, allow humanity to come to harm.
1. A robot may not injure a human being or, through inaction, allow a human being to come to harm.
2. A robot must obey any orders given to it by human beings, except where such orders would conflict with the First Law.
3. A robot must p
しかし、私は私のボットがすべてmessengesで「hubot」を使用せずにアクセスできるようにしたい:現在のチャットは、次のようになります。どのように達成するのですか?
TIA
こんにちは、 私はちょっと簡単な方法を見つけました。 コマンドラインでボットを起動している間(herokuの場合はprocfile)、名前スイッチを指定できます。それに空の文字列を渡すだけで完全に動作します。 hubot -n "" 回答ありがとうございます。 –
恐ろしいですね!あなたはそれがうまくいった:) –