回答編集履歴
3
あ
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
if(data[7]) { return; } //H列がTRUEだったら何もしない。true以外のtruelyな文字列が入っていると誤動作する
|
26
26
|
|
27
|
-
|
27
|
+
var message = '[info]';
|
28
28
|
|
29
29
|
// message += '日付:' + prettyPrintDate(data[1]) + '[hr]'; //day
|
30
30
|
|
2
あ
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
function myFunction(e) {
|
12
12
|
|
13
|
-
if(e
|
13
|
+
if(e["value"] === undefined) { return; } //削除時は何もしない
|
14
14
|
|
15
15
|
const c = e.range.getColumn();
|
16
16
|
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
const token = PropertiesService.getScriptProperties().getProperty('CW_TOKEN');
|
46
46
|
|
47
|
-
sendMessage(token,
|
47
|
+
sendMessage(token, message);
|
48
48
|
|
49
49
|
sheet.getRange(r,8).setValue(true);
|
50
50
|
|
1
あ
test
CHANGED
@@ -26,7 +26,9 @@
|
|
26
26
|
|
27
27
|
const message = '[info]';
|
28
28
|
|
29
|
-
message += '日付:' + prettyPrintDate(data[1]) + '[hr]'; //day
|
29
|
+
// message += '日付:' + prettyPrintDate(data[1]) + '[hr]'; //day
|
30
|
+
|
31
|
+
message += '日付:' + data[1] + '[hr]'; //day
|
30
32
|
|
31
33
|
message += '時間:' + data[2] + '\n'; //time
|
32
34
|
|
@@ -54,6 +56,18 @@
|
|
54
56
|
|
55
57
|
}
|
56
58
|
|
59
|
+
|
60
|
+
|
61
|
+
//質問からコピー
|
62
|
+
|
63
|
+
function sendMessage(token, body){
|
64
|
+
|
65
|
+
var cw = ChatWorkClient.factory({token: token});
|
66
|
+
|
67
|
+
cw.sendMessageToMyChat(body);
|
68
|
+
|
69
|
+
}
|
70
|
+
|
57
71
|
```
|
58
72
|
|
59
73
|
ここでclearContentをプログラム的にやるのは筋違いだと思うので、外しました。
|