ð£å¯¿åžæãã£ã¬ã³ãžïŒå¹çåïŒæ¥œããæºèŒã®GASïŒSlacké£æºð
ðã€ã³ãããã¯ã·ã§ã³ð
ãšãã¯ã¹ãã€ã³ãã¯ã³ã§ã¯ãã¿ã€ãã³ã°ååäžã®ããã«å¯¿åžæã掻çšããŠããŸãã
寿åžæãšã¯ãæ¥æ¬èªã¿ã€ãã³ã°ã®ã¹ãã«ã競ããªã³ã©ã€ã³ã²ãŒã ã§ãã
以åãã¡ã³ããŒã寿åžæã®åãçµã¿ã«ã€ããŠçŽ¹ä»ããèšäºããããŸãã®ã§ããã¡ãããã²ã芧ãã ããã
æ¬èšäºã§ã¯ããšãã¯ã¹ãã€ã³ãã¯ã³ã®å¯¿åžæåãçµã¿ã®å ·äœçãªå 容ã玹ä»ããŸãã
寿åžæã«èå³ãããæ¹ãã瀟å ã§ã®åãçµã¿äºäŸãšããŠåèã«ãªãã°å¹žãã§ãïŒ
ð¡çµè«ð¡
ãŸãã¯çµè«ãããäŒãããŸãã
ãã®å¯¿åžæã®åãçµã¿ãéããŠã瀟å
ã§ã®ã¹ã³ã¢å
±æãå¹ççãã€èŠããããªããŸããã
ð以åã¯ãSlackã§åã
ã®ã¹ã³ã¢ããã©ãã©ã«å
±æãããŠããç¶æ³ã§ããã
ðããããåãçµã¿ã®çµæãã¹ã³ã¢ãã°ã©ãåãããèªåã§Slackã«æçš¿ãããããã«ãªããŸããã
éãç·ã®äººïŒç§ã§ãïŒã®ã¹ã³ã¢ã段ã èœã¡ãŠããã®ãæ°ã«ãªããšããã§ã¯ããããŸãããã¹ã³ã¢ã®æšç§»ãä»ã¡ã³ããŒãšã®ã¹ã³ã¢ã®äžäžé¢ä¿ã®èŠéãããããªã£ãŠããããšãããããŸãã
ð課é¡è§£æ±ºã®æ®µéãšåãçµã¿ð
åãçµã¿ã«ã¯ããã€ãã®æ®µéããããŸãããããããã®æ®µéã§ã
- ç®ç
- 解決ããã課é¡
- æ°ããªèª²é¡ã®çºèŠ
ãããã®ç¹ã«ã€ããŠãé ãè¿œã£ãŠè©³ãã解説ããŠãããŸãã
ã¹ããŒãž0.5: slackãã£ã³ãã«ã®äœæãæ å ±ã®éç©
- ç®ç: 寿åžæã®çµæãäžã€ã®ãã£ã³ãã«ã«éçŽãã
- 解決: ã¡ã³ããŒã®èšé²ãäžèŠ§ã§ããããã«ãªãã寿åžæãžã®æèãä¿é²ããã
- 課é¡: ç¹å®ã®ã¡ã³ããŒã®èšé²ã®æšç§»ã远跡ããããç¶æ
寿åžæã®çµæããã©ãã©ã®ãã£ã³ãã«ã«æçš¿ãããŠããããã#times_sushida ãã£ã³ãã«ãäœæããŠçµæãéçŽããŸããã
ããã«ããä»ã®ã¡ã³ããŒã®èšé²ãšæ¯èŒãããããªããŸããããç¹å®ã®ã¡ã³ããŒã®èšé²ã®æšç§»ã¯ãŸã 远跡ãã«ããç¶æ
ã§ããã
ã¹ããŒãž1: ã¹ãã¬ããã·ãŒãã§ã®ã¹ã³ã¢ç®¡çð
- ç®ç: ç¹å®ã®ã¡ã³ããŒã®èšé²ã®æšç§»ã远跡ãããããã
- 解決: ã¹ãã¬ããã·ãŒãã«èšé²ããŸãšããã°ã©ãåããããšã§åã ã®é²æããããããããªã£ã
- 課é¡: ã¹ã³ã¢å ¥åã®æéã倧ãããããåå è ãéããã
代衚ã®ä¹ ä¿ãããããæãã«ã¹ã³ã¢ãèšé²ã§ããŠè¯ãæãã«ã°ã©ãåãããããã«ããŠã»ããããšããéåžžã«æŽçããããæå¿«ãã€ä»æ§ã詳现ã«å®ãŸã£ãŠãããªã¯ãšã¹ãããããããããšã«é æŽãã寿åžæã®ã¹ã³ã¢ã管çããåã ã®é²æããããããããªãããã«ã°ã©ãåããŸããã
ðå
¥åç»é¢
ã
ðåºåç»é¢
ããã«ãããã¹ã³ã¢ã®æšç§»ãå¯èŠåãããä»ã®ã¡ã³ããŒãšã®çžå¯Ÿçãªã¹ã³ã¢ãæ確ã«ãªããŸããã
ããããã¹ã³ã¢ã®ç»é²ãæå
¥åã§é¢åã§ããããšã課é¡ãæ®ããŸããã
ã¹ããŒãž2: Twitterå ±æãšGoogleãã©ãŒã ã®æŽ»çšð¯
- ç®ç: ã¹ã³ã¢å ¥åã®æéãåæžãã
- 解決: Twitterå ±æç»é¢ã®URLãæçš¿æèšãGoogleãã©ãŒã ã«ã³ããããããšã§ãæéãå€§å¹ ã«åæžããã
- 課é¡: ã°ã©ããã¹ãã¬ããã·ãŒãäžã§æŽæ°ã»è¡šç€ºããããããã¡ã³ããŒãã¹ã³ã¢ã確èªããããã«éœåºŠã¹ãã¬ããã·ãŒããéãå¿ èŠããã
寿åžæã®ãªã¶ã«ãç»é¢ã®Twitterå ±æãã¿ã³ãå©çšããŠãã¹ã³ã¢ãç°¡åã«åãåºãæ¹æ³ãéçºããŸãããTwitterå ±æç»é¢ã®URLãæçš¿æèšãGoogleãã©ãŒã ã«ã³ããããŠéä¿¡ããããšã§ãã¹ãã¬ããã·ãŒãã«èªåçã«åæ ãããããã«ãªããŸããã
twitterå
±æãã¿ã³ãæŒã
ðãã°ã€ã³ãããŠããå Žåã¯ã¹ã³ã¢ã®æèšãåºãã®ã§ãããã³ããŒãã
ðãã°ã€ã³ãããŠããªãå ŽåãURLã«ã¹ã³ã¢ã®æ
å ±ãèšèŒãããŠããã®ã§ãããã³ããŒãã
ðã³ããŒããæèšãgoogle formã§éä¿¡ãã
ãã®æ¹æ³ã«ãããã¹ã³ã¢å ¥åã®æéãå€§å¹ ã«åæžãããå€ãã®ã¡ã³ããŒã寿åžæã«ææŠããããã«ãªããŸããã
ã¹ããŒãž2.5: twitterå ±ææèšãURLã ã£ããšãã®å¯Ÿå¿
- ç®ç: URLãšã³ã³ãŒãã£ã³ã°ãããæååããã¹ã³ã¢ãååŸããæ¹æ³ã確ç«ãã
- 解決: GASäžã§å€æãããããªé¢æ°ãå®çŸ©ãããããã»ã«äžããåŒã¶ããšã§å€æãã
- 課é¡: åŠçãéãããã®æç¹ã§ã¯åé¡ãªãã¬ãã«ã§ã¯ãã£ãããåŸã®åŠçèªååæã«èª²é¡ãé¡åšåãã
Twitterã®ãã°ã€ã³ç¶æ³ã«ãã£ãŠãå
±ææèšãç°ãªããŸãããã°ã€ã³æã¯æ¥æ¬èªã§èšè¿°ãããŠãããé©åã«ã¹ã¯ã¬ã€ãã³ã°ã§ã¹ã³ã¢ãååŸã§ããŸããããã°ã¢ãŠãæã¯URLãšã³ã³ãŒãã£ã³ã°ãããæååã§å±ããŸãã
URLãã³ãŒãã¯ã»ã«ã®é¢æ°ã«ã¯ååšããªããããGASã§å€æããé¢æ°ãå®çŸ©ããã»ã«ããåŒã³åºããŠå€æãå®çŸããŸããã
function decodeURI2(uri) {
return decodeURI(uri);
}
ã¹ããŒãž3: Google Apps Scriptã§ã®èªååâïž
- ç®ç: ã°ã©ããèŠãããã«ã¹ãã¬ããã·ãŒãããéãå¿ èŠãããæéãåæžãã
- 解決: GASãçšããŠã¹ãã¬ããã·ãŒãããã¹ã³ã¢æ å ±ãååŸããã°ã©ããèªåçæããSlackã«æçš¿ããæ©èœãå®è£ ãã
- 課é¡: URLãã³ãŒãã®æ¹æ³ãéããèªååŠçã«éã«åããªãã±ãŒã¹ãçºçãã
å¹çåãç®æããGoogle Apps Script (GAS) ã䜿ã£ãŠã¹ãã¬ããã·ãŒãããã¹ã³ã¢æ
å ±ãååŸããã°ã©ããèªåçæããSlackã«æçš¿ããæ©èœãå®è£
ããŸããã
以äžã®æé ã§åäœããŸãã
- google formã§ã¹ã³ã¢ãéä¿¡ããã
- gasã®ããªã¬ãŒãformã®éä¿¡ããã£ããããåŠçãçºç«ãã
- ã¹ãã¬ããã·ãŒãããã°ã©ããååŸ
- ååŸããã°ã©ããGoogleãã©ã€ãã«ä¿å
- Googleãã©ã€ãã®ããŠã³ããŒãçšURLãååŸ
- åãåã£ãã¹ã³ã¢ãæçš¿è ã®æ å ±ã衚瀺ããããã¹ãã®åœ¢ã«æŽåœ¢ããã°ã©ãã®URLãè¿œèšããŠSlackã«éä¿¡
- Incoming Webhookã§åãåã£ãŠSlackã«æçš¿
ãã®æ©èœã«ãããæéãåæžãããŸããããã ããURLãã³ãŒãã®æ¹æ³ãéããèªååŠçã«éã«åããªãã±ãŒã¹ãçºçãã課é¡ãæ®ããŸããã
ã¹ããŒãž3.5: URLãã³ãŒãã®æ¹éå€æŽð
- ç®ç: URLãã³ãŒãã®åŠçã軜ãããèªååŠçã«éã«åãããã«æ¹åãã
- 解決: GASã®äžé£ã®åŠçã®äžã§URLãã³ãŒãããããã«å€æŽããåŠçé床ãåäžãã
- 課é¡: ãªãïŒåãçµã¿ãå®æããã¹ã ãŒãºãªå¯¿åžæã®èšé²ãšå ±æãå¯èœã«ãªã£ãïŒ
ã¹ããŒãž2.5ã§GASäžã§å®çŸ©ããé¢æ°ãã»ã«äžããåŒã³åºããŠURLãã³ãŒããè¡ã£ãŠããŸãããããã®æ¹æ³ã¯éåžžã«åäœãéãããã©ãŒã ãåãåããã°ã©ããäœæããSlackã«å ±æãããŸã§ã®èªååŠçã«éã«åããªãã±ãŒã¹ããããŸãããããã§ããã©ãŒã ãåãåã£ãŠçºç«ããGASã®äžé£ã®åŠçã®äžã§URLãã³ãŒãããããã«å€æŽããŸããã
ããã«ããã寿åžæããã¬ã€ãçµããåŸã¯Twitterå ±æãã¿ã³ãæŒããŠã³ããŒïŒããŒã¹ãããã ãã§ãã¹ã³ã¢ãã°ã©ãåãããŠSlackã«è¡šç€ºãããããã«ãªããŸããã寿åžæã®åãçµã¿ã掻çºåããå¹æãå®æã§ããããã«ãªããŸããã
ðåãçµã¿ã®ææð
æ¬èšäºã§ã¯ãåŒç€Ÿã®å¯¿åžæåãçµã¿ã«ããã課é¡è§£æ±ºã®éçšã玹ä»ããŸããã
ãã®ç¬éã®ã¹ã³ã¢ãšããŠç¹ã§å
±æãããŠãã寿åžæã®åãçµã¿ãéç©ã»å¯èŠåããããšã§ã¡ã³ããŒã®ã¢ãããŒã·ã§ã³ãé«ãããŸãã°ã©ãã§ä»ã¡ã³ããŒãšã®çžå¯Ÿçãªäœçœ®ããããããšã§ã²ãŒã æ§ã®ãã楜ãããèŠãã ããåå ã¡ã³ããŒã®ããéãæ¡å€§ããããšãçŽ çŽã«å¬ããã§ãã
ãšã¯ãããã®ãããªåãçµã¿ãä»ã§ãå®è¡ãããŠããã®ã¯ã寿åžæã«åãçµã¿ãã¹ã³ã¢ããã®äœãæã§åçã«æ¹åãããã£ãšæ¥åã®å¹çãæ¯äŸããŠåäžããŠãããŠããã¡ã³ããŒã®ã¿ãªããã®ãããã§ãã
ãã®åãçµã¿ã«åå ããŠãã ãã£ãã¡ã³ããŒã®çãããžãå¿ããæè¬ã®æ°æã¡ãäŒããããšæããŸããçããã®ç±æãšåªåã«æ·±ãæ¬æãè¡šããŸãã
ä»åŸãäžç·ã«åãçµã¿ãªãããã¿ã€ãã³ã°é床ãéããŠããããããšãããšãã®ã¬ã¹ãã§çµ¶å¯Ÿã«è² ããªãããã«ãªããŸãããðª
Discussion