Commit 084cee1 1 parent abbc527 commit 084cee1 Copy full SHA for 084cee1
File tree 1 file changed +6
-2
lines changed
packages/uplim-info-gmail/src
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ import { postMessage } from "utils";
2
2
import { createMessage } from "./functions/createMessage" ;
3
3
4
4
function main ( ) {
5
- const threads = GmailApp . search ( "in:Inbox is:Unread" , 0 , 100 ) ;
5
+ const threads = GmailApp . search (
6
+ "in:Inbox is:Unread to:info@uplim.co.jp" ,
7
+ 0 ,
8
+ 100 ,
9
+ ) ;
6
10
const label = GmailApp . getUserLabelByName ( "isNotified" ) ;
7
11
8
12
for ( const thread of threads ) {
@@ -20,7 +24,7 @@ function main() {
20
24
text . length > 2000 ? `${ text . substring ( 0 , 1995 ) } ...` : text ;
21
25
22
26
postMessage ( {
23
- username : "Uplim Info Gmail " ,
27
+ username : "info@uplim.co.jp " ,
24
28
parse : "full" ,
25
29
avatar_url :
26
30
"https://cdn.discordapp.com/attachments/792765244040675389/921661726863282176/pngegg.png" ,
You can’t perform that action at this time.
0 commit comments