示例#1
0
 var replyFormatted = function(channel, text) {
   logger.debug(channel, text);
   var channel = slackClient.getDMByID(channel);
   channel.postMessage({
     unfurl_links: false,
     text: text,
     as_user: true,
   });
 };
示例#2
0
 var reply = function(channel, text) {
   logger.debug(channel, text);
   var channel = slackClient.getDMByID(channel);
   channel.send(text);
 };