public function trigger(SlackBot $slackBot) { $slackBot->setBotName('天氣'); $slackBot->setBotIcon(":earth_asia:"); $commands = $slackBot->commands; $msg = $this->responseFactory($commands); return $slackBot->sendMsgforGAE($msg); }
public function trigger(SlackBot $slackBot) { $slackBot->setBotName($slackBot->trigger_word); $slackBot->setBotIcon(":heavy_dollar_sign:"); $commands = $slackBot->commands; $msg = $this->responseFactory($commands); return $slackBot->sendMsgforGAE($msg); }