ãç¥ãã
使ã£ã¦ããã¢ã¸ã¥ã¼ã«ã®é¢ä¿ã§Notify::XMPPç¨ã®plagger-xmppbotã¯åããªããªã£ã¦ãã¾ã£ãã®ã§ã代ããã«
ã使ããã¨ããããããã¾ãã
ãã¦ã³ãã¼ãã¯ãã¡ãããã
Notify::XMPPã¯ãJabberãGoogle Talkã¨ãã£ãXMPPã使ã£ãIMã«Notifyã¡ãã»ã¼ã¸ãéãããã®Pluginã§ãã
æ¥ä¸ãIMã¯ãã£ã¨ç«ä¸ãã¦ããã®ã§ãç·æ¥åº¦ã®é«ãã¢ãã¯Notify::XMPPã§IMã«ç¥ãããããã«ãã¦ãã¦éå®ãã¦ãã¾ãã
使ãæ¹ã¯ãããªæãã§ãã
ã¾ãããããªæãã®YAMLãç¨æãã¾ãã(globalã¨ãã¯é©å®è¨å®ãã¦ãã ãã)
plugins: - module: Notify::XMPP config: jid: [email protected] password: XXXXX to: - [email protected] - [email protected] - [email protected]
toã«ã¯Notifyãåãåã人ã®IDãåæãã¾ãã(è¤æ°æ¸ãã¾ã)
ä¸æ¹ãjidã¨passwordã«ã¯ãNotifyãéãã®ã«ä½¿ãã¢ã«ã¦ã³ãã®IDæ å ±ãæå®ãã¾ãããã®ã¢ã«ã¦ã³ãã¯å¾ç¨èµ·åããbotã«ãã£ã¦å¸¸é§ãããã¨ã«ãªãã®ã§ãéç¥ç¨ã®å°ç¨ã¢ã«ã¦ã³ããä½ã£ãã»ããããã¨æãã¾ãã
YAMLãã§ãããbotãèµ·åãã¾ãã
$ ./bin/plagger-xmppbot -c xmpp.yaml
ããã§jidã®ã¢ã«ã¦ã³ãããJabberãGoogle Talkã®ã³ã³ã¿ã¯ããªã¹ãä¸ã§ãªã³ã©ã¤ã³ã«ãªã£ãã¯ãã§ããã¾ã ã³ã³ã¿ã¯ããªã¹ãã«ç»é²ãã¦ããªãã£ãããjidã§æå®ããIDã«é常ã¨åãããã«ç»é²è¦æ±ãéãã°ãã£ãã¼ã§æ¿èªãããã¯ãã§ãã
ããã§Notifyããããã®æºåã¯ã§ãã¾ããã
ãã¨ã¯ã
$ plagger -c xmpp.yaml
ããã°ãNotify::XMPP (å®ä½ã¯ Notify::XMPP::IKC) ããplagger-xmppbot çµç±ã§toã§æå®ããIDã«ã¡ãã»ã¼ã¸ãéã£ã¦ããã¾ãã
ã¡ããã©ãplagger-ircbotã¨Notify::IRCã®æ§æã¨åããããªæãã§ãã
ããã常é§botãªãã§ã¡ãã»ã¼ã¸ãéãããå ´åã¯ãYAMLã«ãã®ããã«ã
- module: Notify::XMPP config: jid: [email protected] password: XXXXX direct: yes to: - [email protected] - [email protected] - [email protected]
ãdirect: yesããæå®ããã¨ãplagger-xmppbotçµç±ã§ã¯ãªããNotify::XMPP (å®ä½ã¯ Notify::XMPP::Direct) ãèªåã§ã¡ãã»ã¼ã¸ãéã£ã¦ããã¾ãã