removing some debug msgs

This commit is contained in:
Jakub Klena 2024-05-24 08:44:15 +02:00
parent 6d468acd6f
commit 1b7aae4590

View file

@ -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);