示例#1
0
文件: Output.php 项目: WeCamp/ardo
 /**
  * @param MessageInterface $message
  */
 public function handleMessage(MessageInterface $message)
 {
     if ($message->isEmpty() === false) {
         $this->slack->sendMessage(Message::createFromString('Repyling to: ' . $message->toString()));
     }
 }
示例#2
0
文件: Slack.php 项目: WeCamp/ardo
 /**
  * @param MessageInterface $message
  */
 public function sendMessage(MessageInterface $message)
 {
     $this->commander->execute('chat.postMessage', ['channel' => $this->channel, 'text' => $message->toString(), 'username' => 'ardo', 'icon_url' => 'https://raw.githubusercontent.com/WeCamp/ardo/master/ardo-head.png']);
 }
示例#3
0
文件: Cli.php 项目: WeCamp/ardo
 public function handleMessage(MessageInterface $message)
 {
     printf("I am handling this: %s\n", $message->toString());
 }