{"id":547,"date":"2014-06-25T05:21:40","date_gmt":"2014-06-24T20:21:40","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=547"},"modified":"2014-06-25T05:21:40","modified_gmt":"2014-06-24T20:21:40","slug":"lingr_bot","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2014\/06\/25\/lingr_bot\/","title":{"rendered":"Lingr \u306e bot \u3092\u4f5c\u3063\u3066\u307f\u305f"},"content":{"rendered":"<div style=\"background-color: rgb(255, 255, 255); font-family: 'Lucida Grande', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Lucida Sans Unicode', Helvetica, Arial, sans-serif; font-size: 0.9em; overflow-x: hidden; overflow-y: auto; margin: 0px !important; padding: 5px 20px 26px !important;padding: 20px;padding: 20px; color: rgb(34, 34, 34); font-size: 15px; font-family: 'Roboto Condensed', Tauri, 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', AppleSDGothicNeo-Medium, 'Segoe UI', 'Malgun Gothic', Verdana, Tahoma, sans-serif; background-color: rgb(255, 255, 255); -webkit-font-smoothing: antialiased; background-position: initial initial; background-repeat: initial initial;\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;\"><a href=\"http:\/\/kagolug.org\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">\u9e7f\u5150\u5cf6\u3089\u3050<\/a> \u306e<a href=\"http:\/\/lingr.com\/room\/kagolug\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">Lingr room \u3092\u4f5c\u3063\u3066\u307f\u305f<\/a>\u306e\u3067\uff0c\u305d\u3053\u306bML \u306eSubject \u3092\u6d41\u3059bot \u3092\u8a2d\u7f6e\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u3053\u3061\u3089\u306b\u30da\u30fc\u30b8\u306b\u4f5c\u308a\u65b9\u304c\u8f09\u3063\u3066\u3044\u307e\u3059\uff0ebot\u7528\u306eAPI \u304c\u3042\u308b\u306e\u3067\u697d\u3005\u3067\u3059\uff0e<\/p>\n<ul>\n<li style=\"display: list-item; line-height: 1.4em;\">\u201cHome \u00b7 lingr\/lingr Wiki\u201d <a href=\"https:\/\/github.com\/lingr\/lingr\/wiki\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">https:\/\/github.com\/lingr\/lingr\/wiki<\/a><\/li>\n<\/ul>\n<h1 id=\"bot-\" style=\"clear: both;font-size: 2.2em; font-weight: bold; margin: 1.5em 0px 1em;\"><a name=\"bot-\" href=\"#bot-\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\"><\/a>bot \u767b\u9332<\/h1>\n<p style=\"margin-top: 0px;margin: 1em 0px; word-wrap: break-word;\">\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067bot \u3092\u767b\u9332\u3057\u307e\u3059\uff0e<\/p>\n<ul>\n<li style=\"display: list-item; line-height: 1.4em;\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u201cLingr\u201d <a href=\"http:\/\/lingr.com\/bot\/create\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">http:\/\/lingr.com\/bot\/create<\/a><\/p>\n<ul>\n<li style=\"display: list-item; line-height: 1.4em;\">Bot id : \u4efb\u610f<\/li>\n<li style=\"display: list-item; line-height: 1.4em;\">Callback URL : \u3053\u306eURL \u306broom \u306e\u5185\u5bb9\u304c\u98db\u3093\u3067\u304d\u307e\u3059\uff0e\u305d\u306e\u5185\u5bb9\u304b\u3089\u53cd\u5fdc\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\uff0e\u3068\u308a\u3042\u3048\u305a\u6700\u4f4e\u9650HTTP \u3067200 \u3092\u8fd4\u3059\u3082\u306e\u3092\u7528\u610f\u3057\u3066\u6307\u5b9a\uff0e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1 id=\"-cgi-\" style=\"clear: both;font-size: 2.2em; font-weight: bold; margin: 1.5em 0px 1em;\"><a name=\"-cgi-\" href=\"#-cgi-\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\"><\/a>\u30e1\u30c3\u30bb\u30fc\u30b8\u53d7\u4fe1\u7528\u306ecgi \u3092\u4f5c\u6210<\/h1>\n<p style=\"margin-top: 0px;margin: 1em 0px; word-wrap: break-word;\">\u3072\u3068\u307e\u305a\u53d7\u3051\u7b54\u3048\u306f\u3057\u306a\u3044\u3064\u3082\u308a\u306a\u306e\u3067HTTP 200 \u3092\u8fd4\u3059\u3060\u3051\u306eScript \u3092\u7528\u610f\uff0e<\/p>\n<p><script src=\"https:\/\/gist.github.com\/matoken\/ed68bd7182ffddee4801.js\"><\/script><\/p>\n<h1 id=\"-\" style=\"clear: both;font-size: 2.2em; font-weight: bold; margin: 1.5em 0px 1em;\"><a name=\"-\" href=\"#-\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\"><\/a>\u6295\u7a3f\u30c6\u30b9\u30c8<\/h1>\n<p style=\"margin-top: 0px;margin: 1em 0px; word-wrap: break-word;\">get \u3060\u3051\u3067\u6295\u7a3f\u3067\u304d\u308b\u306e\u3067\u8a66\u3057\u306b\u6295\u7a3f\u3057\u3066\u307f\u307e\u3059\uff0c<\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067\u60c5\u5831\u304c\u5165\u624b\u3067\u304d\u307e\u3059\uff0e<\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u201cLingr\u201d <a href=\"http:\/\/lingr.com\/developer\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">http:\/\/lingr.com\/developer<\/a><\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">bot_verifier \u306f\u8f09\u3063\u3066\u3044\u307e\u305b\u3093\u304c\uff0cbot ID \u3068Secret \u304b\u3089\u6c42\u3081\u3089\u308c\u307e\u3059\uff0e<br style=\"clear: both;\"><strong>KagolugML_bot<\/strong> \u3068 <strong>xxxxxxxxxxxxxxxxxxxxxxxxxxx<\/strong> \u3092\u7d50\u5408\u3057\u305f\u6587\u5b57\u5217\u3092sha1 \u306b\u304b\u3051\u307e\u3059\uff0e<\/p>\n<pre style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; overflow: auto;\"><code data-origin=\"&lt;pre&gt;&lt;code&gt;$ echo -n 'KagolugML_botxxxxxxxxxxxxxxxxxxxxxxxxxxx'|sha1sum \nb3c03556dca8dfffb8c509cb709817044c98ad87  -\n&lt;\/code&gt;&lt;\/pre&gt;\" style=\"display: block;border: 1px solid rgb(204, 204, 204); white-space: pre; padding: 0.5em; margin: 0px;border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; letter-spacing: -1px; font-weight: bold;\">$ echo -n 'KagolugML_botxxxxxxxxxxxxxxxxxxxxxxxxxxx'|sha1sum \nb3c03556dca8dfffb8c509cb709817044c98ad87  -\n<\/code><\/pre>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u3053\u306e\u5834\u5408 <strong>b3c03556dca8dfffb8c509cb709817044c98ad87<\/strong> \u304c <strong>bot_verifier<\/strong> \u3067\u3059\uff0e<\/p>\n<ul>\n<li style=\"display: list-item; line-height: 1.4em;\">\u6295\u7a3f\u5148\u306eroom : kagolug<\/li>\n<li style=\"display: list-item; line-height: 1.4em;\">bot ID : KagolugML_bot<\/li>\n<li style=\"display: list-item; line-height: 1.4em;\">bot_verifier : b3c03556dca8dfffb8c509cb709817044c98ad87<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3068room \u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u6295\u7a3f\u3055\u308c\u307e\u3057\u305f\uff0c<\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\">w3m -dump \u2018<a href=\"http:\/\/lingr.com\/api\/room\/say?room=kagolug&amp;bot=KagolugML_bot&amp;text=\u306f\u308d\u30fc\u308f\u30fc\u308b\u3069&amp;bot_verifier=b3c03556dca8dfffb8c509cb709817044c98ad87\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">http:\/\/lingr.com\/api\/room\/say?room=kagolug&amp;bot=KagolugML_bot&amp;text=\u306f\u308d\u30fc\u308f\u30fc\u308b\u3069&amp;bot_verifier=b3c03556dca8dfffb8c509cb709817044c98ad87<\/a>\u2018<\/p>\n<\/blockquote>\n<h1 id=\"-linger-\" style=\"clear: both;font-size: 2.2em; font-weight: bold; margin: 1.5em 0px 1em;\"><a name=\"-linger-\" href=\"#-linger-\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\"><\/a>\u30e1\u30fc\u30eb\u304b\u3089Linger \u306b\u6295\u7a3f<\/h1>\n<p style=\"margin-top: 0px;margin: 1em 0px; word-wrap: break-word;\">\u9e7f\u5150\u5cf6\u3089\u3050\u306eML \u3060\u3051\u3092\u767b\u9332\u3057\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u7528\u610f\uff0e\u305d\u306e\u30a2\u30c9\u30ec\u30b9\u306e .forward \u306b\u4ee5\u4e0b\u306eSctipt \u3092\u547c\u3076\u3088\u3046\u306b <code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">\"|exec \/home\/mk\/bin\/ml2lingr.pl\"<\/code> \u306e\u3088\u3046\u306a\u611f\u3058\u3067\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\uff0c\u5f8c\u306f\u30e1\u30fc\u30eb\u304c\u5c4a\u304f\u3068\u3053\u306eScript\u304c\u547c\u3070\u308c\u3066Room \u306b\u6295\u7a3f\u3055\u308c\u307e\u3059\uff0e<\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\"><script src=\"https:\/\/gist.github.com\/matoken\/3021d8d064d8a1d29ba9.js\"><\/script><br style=\"clear: both;\">\u203bbot_verifier \u306f\u30c0\u30df\u30fc\u3067\u3059\uff0e<\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u3066\u3053\u3068\u3067irc \u306ebot \u3068\u304b\u66f8\u304f\u3088\u308a\u305a\u3063\u3068\u304a\u624b\u8efd\u306b\u66f8\u3051\u307e\u3057\u305f\uff0e<br style=\"clear: both;\">\u4eca\u56de\u306f\u5358\u306b\u6295\u7a3f\u3059\u308b\u3060\u3051\u3067\u3059\u304c\uff0ccgi \u3067room \u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u89e3\u6790\u3057\u3066\u53cd\u5fdc\u3059\u308b\u3068\u304b\u3059\u308b\u3068bot \u3089\u3057\u304f\u306a\u308a\u307e\u3059\u306d\uff0e<\/p>\n<p><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=matokensmeme-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=486146188X\" style=\"width:120px;height:240px;border: 0px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=matokensmeme-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=4863540736\" style=\"width:120px;height:240px;border: 0px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=matokensmeme-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=4777515362\" style=\"width:120px;height:240px;border: 0px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=matokensmeme-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=4798119172\" style=\"width:120px;height:240px;border: 0px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9e7f\u5150\u5cf6\u3089\u3050 \u306eLingr room \u3092\u4f5c\u3063\u3066\u307f\u305f\u306e\u3067\uff0c\u305d\u3053\u306bML \u306eSubject \u3092\u6d41\u3059bot \u3092\u8a2d\u7f6e\u3057\u3066\u307f\u307e\u3057\u305f\uff0e \u3053\u3061\u3089\u306b\u30da\u30fc\u30b8\u306b\u4f5c\u308a\u65b9\u304c\u8f09\u3063\u3066\u3044\u307e\u3059\uff0ebot\u7528\u306eAPI \u304c\u3042\u308b\u306e\u3067\u697d\u3005\u3067\u3059\uff0e \u201cHome \u00b7 lin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[],"tags":[53],"class_list":["post-547","post","type-post","status-publish","format-standard","hentry","tag-perl"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=547"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/547\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}