Slackã®ã¦ã¼ã¶ã¼ã¹ãã¼ã¿ã¹ã使ã£ã¦ã¾ããï¼Slackä¸ã§çµµæå+ããã¹ã
ã«ãã£ã¦èªèº«ã®ç¶æ
ã示ããã¨ãã§ããæ©è½ã
ã¡ãã»ã³ã¸ã£ã¼ç³»ã½ããã¦ã§ã¢ã®æ©è½ã¨ãã¦ã¯ç®æ°ãããã®ã§ã¯ãªãããã³ãã¥ãã±ã¼ã·ã§ã³ã®è³ªãåä¸ãããããã³ã·ã£ã«ããããªã¨æãã¦ããã
ãªã¢ã¼ãã¯ã¼ã¯ã¨ã¹ãã¼ã¿ã¹
ãªã¢ã¼ãã§ã¯åºæ¬ã®ããã¨ãã¯éåæã ãããã¾ã¼ã«åæçãªã³ãã¥ãã±ã¼ã·ã§ã³ãå¿ è¦ãªã¨ãã«ç¸æãã©ããªç¶æ ã§ããã®ããç¥ãããã¨ããããã
èªåã®ç¶æ ã示ãããã¨ãããããã«ãã§ã§ä»äºãã¦ãã¨ãã¨ãã
ãã®ç¶æ ã®ããã¨ãã«Slackã®ã¹ãã¼ã¿ã¹ããã¾ãæ©è½ããããã«ã§ããã°ããã®ã§ã¯ï¼ã¨èããã
æè¿ç§»è»¢ããå¼ç¤¾ãªãã£ã¹ãä½æ¥å ´æã¨ãã¦ä½¿ããã¨ãå¤ããªã£ã¦ããã®ã§ããªãã£ã¹ã«èª°ãããã®ããææ¡ããã®ã«ã使ãããã ãªãã¨æã£ã¦ããã¨ããã次ã®ãããªã¨ã³ããªãèªãã ã
ã¹ãã¼ã¿ã¹å¤æ´ãèªååãã
ãã®ã¨ã³ããªã§ã¯ã¤ãªãã§ããSSIDããã¨ã«Slackã®ã¹ãã¼ã¿ã¹ãå¤æ´ããã¨ããã³ãã³ãã©ã¤ã³ãã¼ã«ãä½ã£ãã¨ç´¹ä»ãã¦ããã
ãã®æ¹æ³ã¯èªèº«ã®ç¶æ ã大ã¾ãã«ç¤ºãã®ã«æé©ã ãªã¨æã£ãã
ãã ã³ãã³ãã©ã¤ã³ã§åä½ãããã¼ã«ã¨ããã®ããååã«ã¤ã³ã¹ãã¼ã«ãã¦ãããã®ã«ã¯éå£ã«ãªãããã ãªã¨æã£ãã
Electronã§ã¢ããªãä½ã£ã
https://nakajmg.github.io/SlackStatusChanger/
ã¡ãã¥ã¼ãã¼ã§åä½ããã¢ããªãElectronã§ä½ã£ãã
æ©è½ã¯ðã®ãããªæã
SSIDã«ããã¹ãã¼ã¿ã¹å¤æ´
ã¤ãªãã§ããWi-Fiã®SSIDã«ãã£ã¦ã¹ãã¼ã¿ã¹ãèªåã§å¤æ´ããã
ãµã¹ãã³ãæã®ã¹ãã¼ã¿ã¹å¤æ´
PCããµã¹ãã³ãããã¨ãã«ã¹ãã¼ã¿ã¹ãèªåã§å¤æ´ãããè¨å®ã¯SSIDã¨ç´ä»ããã
ä¾ãã°ããªãã£ã¹ã®ãããã¯ã¼ã¯ã«ã¤ãªãã§ããã¨ãã«PCãéããã¨ããªã©ã«é¢å¸ä¸
ã¨ãã£ãã¹ãã¼ã¿ã¹ã«èªåã§å¤æ´ããããã«è¨å®ã§ããã
ã¹ãã¼ã¿ã¹ã®ãªã¹ãä½æ
Slackã®å ´åãããã©ã«ãã®ã¹ãã¼ã¿ã¹ã¯5åã¾ã§ã§ããã¼ã å ¨å¡ã§å ±æãããã
ãã®ã¢ããªã§ã¯ã¢ããªãã¨ã«å¥½ããªã¹ãã¼ã¿ã¹ã®ã»ãããä¿åãã¦ãããã®ã§ããã使ãã¹ãã¼ã¿ã¹ã1ã¯ãªãã¯ã§é©ç¨ãããã¨ãã§ããã
ã¢ããªãæ´»ç¨ããããã«
ä½ã£ãã¢ããªã§ã¹ãã¼ã¿ã¹ã®å¤æ´ãè¶ ã«ã³ã¿ã³ã«ã§ããããã«ãªã£ãããã¡ã³ãã¼ã®ã¹ãã¼ã¿ã¹ãç¥ãæ段ãååã®æ¨ªã«è¡¨ç¤ºããã¦ãããã¤ãããªãã
ããã ã¨ãã¾ãã¹ãã¼ã¿ã¹ãæå¹æ´»ç¨ã§ããªãã®ã§ãbotã¨ã¹ã©ãã·ã¥ã³ãã³ããä½ã£ã¦è¿½å ããã
ã¹ãã¼ã¿ã¹å¤æ´éç¥bot
ã¹ãã¼ã¿ã¹ã®å¤æ´ãç£è¦ãã¦ãå¤æ´ããã£ãã¹ãã¼ã¿ã¹ãbotã«éç¥ãããããã«ããã
herokuä¸ã§ç¹å®ã®URLãå©ãã¨Slack APIã§ã¹ãã¼ã¿ã¹ãåå¾ãã¦ãååã®çµæã¨ã®å·®åãåå¾ãã¦å°ç¨ã®ãã£ã³ãã«ã«æµãããã«ãã¦ããã
URLãå©ãã®ã«ã¯Google Apps Scriptã®åã¿ã¤ãã¼ã使ã£ã¦ãï¼herokuã®schedulerãã¤ãã¤ãã ã£ãï¼ã
ã½ã¼ã¹ https://github.com/nakajmg/SlackStatusNotifier
ã¹ãã¼ã¿ã¹ä¸è¦§ã³ãã³ã
ã¡ã³ãã¼ã®ã¹ãã¼ã¿ã¹ãä¸è¦§ã§è¦ããã£ãã®ã§ãã¹ã©ãã·ã¥ã³ãã³ããä½æãã¦è¿½å ããã
éç¥ã¨ä¸è¦§ã«ãã£ã¦ã¹ãã¼ã¿ã¹ã®å¯è¦åãã§ããããã«ãªã£ã¦ã¢ããªã®å©ç¨ä¾¡å¤ãé«ã¾ã£ãããã«æãã
ããã
DLã¯ãã¡ããã
https://github.com/nakajmg/SlackStatusChanger/releases/tag/v2.2.0
ãã£ã¼ãããã¯ãå¾ ã¡ãã¦ããã¾ã ð
[追è¨] ãµã¤ã³ã¤ã³ã¨Slackã¸ã®ã¤ã³ã¹ãã¼ã«ã«ã¤ãã¦
ã¢ããªã«ãµã¤ã³ã¤ã³ããã«ã¯Manage Permissionã§Sign in with Slack
ãæå¹ã«ããå¿
è¦ãããã¾ãã
Slackã®App Directoryã«ä¹ãã審æ»ãéãã¦ããªãã®ã§ãTeamã®è¨å®ã§Non distributedãªappã®ã¤ã³ã¹ãã¼ã«ã許å¯ããã¦ãªãå ´åã«ã¯ãµã¤ã³ã¤ã³ã§ã¨ã©ã¼ã«ãªãã¾ã ðð»ãï¼Permissionã®Only allow apps from the Slack App Directory
ãæå¹ãªå ´åï¼
ã¾ããã¤ã³ã¹ãã¼ã«ã«Adminã®è¨±å¯ãå¿
è¦ãªå ´åï¼Approved Apps
ãæå¹ãªå ´åï¼ã«ããµã¤ã³ã¤ã³ã§ã¨ã©ã¼ãã§ã¾ãããã¤ã³ã¹ãã¼ã«ã許å¯ãããã¨ä½¿ããããã«ãªãã¾ãã
ãµã¤ã³ã¤ã³ä»¥å¤ã«Tokenã®å ¥åã§ãã¢ããªã使ããããã«ãããæ¤è¨ä¸ã§ãð¤