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) {
|
if (F.is4) {
|
||||||
instance.send2("is F4");
|
|
||||||
let opt = {
|
let opt = {
|
||||||
'method': 'post',
|
'method': 'post',
|
||||||
'url': 'https://slack.com/api/chat.postMessage',
|
'url': 'https://slack.com/api/chat.postMessage',
|
||||||
|
|
@ -99,13 +98,10 @@ exports.install = function(instance) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
instance.send2(opt);
|
|
||||||
REQUEST(opt);
|
REQUEST(opt);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
instance.send2("is NOT F4");
|
U.request('https://slack.com/api/chat.postMessage', ['json', 'post'], JSON.stringify(message), function(err, data, status, headers, host) {
|
||||||
|
|
||||||
U.request('https://slack.com/api/chat.postMessage', ['json', 'post'], message, function(err, data, status, headers, host) {
|
|
||||||
if (response && !err) {
|
if (response && !err) {
|
||||||
response.data = { data: data, status: status, headers: headers, host: host };
|
response.data = { data: data, status: status, headers: headers, host: host };
|
||||||
instance.send2(response);
|
instance.send2(response);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue