removing some debug msgs
This commit is contained in:
parent
6d468acd6f
commit
1b7aae4590
1 changed files with 1 additions and 5 deletions
|
|
@ -82,7 +82,6 @@ exports.install = function(instance) {
|
|||
};
|
||||
|
||||
if (F.is4) {
|
||||
instance.send2("is F4");
|
||||
let opt = {
|
||||
'method': 'post',
|
||||
'url': 'https://slack.com/api/chat.postMessage',
|
||||
|
|
@ -99,13 +98,10 @@ exports.install = function(instance) {
|
|||
}
|
||||
}
|
||||
};
|
||||
instance.send2(opt);
|
||||
REQUEST(opt);
|
||||
|
||||
} else {
|
||||
instance.send2("is NOT F4");
|
||||
|
||||
U.request('https://slack.com/api/chat.postMessage', ['json', 'post'], message, function(err, data, status, headers, host) {
|
||||
U.request('https://slack.com/api/chat.postMessage', ['json', 'post'], JSON.stringify(message), function(err, data, status, headers, host) {
|
||||
if (response && !err) {
|
||||
response.data = { data: data, status: status, headers: headers, host: host };
|
||||
instance.send2(response);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue