ãã¾ã«ã¯å®ç¨çãªãã®ãã¤ãããã¨æã£ã¦ãGo+Luaã§ç½®ãã ãã§åããã£ããããããä½ã£ã¦ã¿ã¾ãããSlack, IRC, Hipchatããµãã¼ããã¦ãã¾ãã ãã£ãããããã¨ããã°Hubotã ã¨æãã¾ããããã£ã¨ããã£ã¨åããããã¨ããæ¹ã«ããããã§ããç½®ãã°ãããã¾ãã ç¹å¾´ã¯ä»¥ä¸ã§ãã Goãªã®ã§ç½®ãã°åã ããã§ãã¦Luaã§ã¹ã¯ãªãããæ¸ãã æåãããã«ãã¹ã¬ãã(è¤æ°goroutine)ãèæ ®ãã¦ãã HTTP(S)ãµã¼ãæ©è½ãããã®ã§WEBHOOKãä¸ç·ã«ä½ãã å®æã¸ã§ããæµãã 1function main() 2 local bot = golbot.newbot("Slack", { token = "xxxxx" }) 3 4 bot:respond([[\s*(\d+)\s*\+\s*(\d+)\s*]], function(m, e) -- 3 5 bot:s
{{#tags}}- {{label}}
{{/tags}}