{"id":465,"date":"2010-11-15T21:10:54","date_gmt":"2010-11-15T20:10:54","guid":{"rendered":"http:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/"},"modified":"2010-11-15T21:10:54","modified_gmt":"2010-11-15T20:10:54","slug":"adding-the-irc-notice-capability-to-botbasicbot","status":"publish","type":"post","link":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/","title":{"rendered":"Adding the irc NOTICE capability to Bot::BasicBot"},"content":{"rendered":"<p><a href=\"http:\/\/search.cpan.org\/dist\/Bot-BasicBot\/\" rel=\"nofollow\">Bot::BasicBot<\/a> is a Perl module that provides a really easy, fast and convenient way to build plugin-based IRC bots. I&#39;m playing around with an IRC bot that should assist in <a href=\"http:\/\/www.startuplessonslearned.com\/2009\/06\/why-continuous-deployment.html\" rel=\"nofollow\">continuously deploying<\/a> projects.<\/p>\n<p>This bot has two main functionalities:<\/p>\n<ul>\n<li>keep track of continous integration builds<\/li>\n<li>initiate and keep track of deployments<\/li>\n<\/ul>\n<p>Right now the bot reads a main configuration file with data about projects, repositories, continuous integration, etc&#8230; and answers commands. This is an example:<\/p>\n<pre><code>\r\n21:58 &lt;@cosimo&gt; projects-list\r\n21:58 &lt; deployer&gt; auth, geodns, libopera, link, myopera, sso\r\n21:58 &lt;@cosimo&gt; build-status geodns\r\n21:58 &lt; deployer&gt; 97ad24e success cosimo <a href=\"https:\/\/git.server\/functests\/builds\/geodns\/97ad24e\" rel=\"nofollow\" target=\"_blank\">https:\/\/git.server\/functests\/builds\/geodns\/97ad24e<\/a>\r\n21:58 &lt;@cosimo&gt; latest-revision sso\r\n21:58 &lt; deployer&gt; 5207cfe, <a href=\"https:\/\/git.server\/?p=sso.git;a=commit;h=fe977d32e9580551dffe8139396106ba25207cfe\" rel=\"nofollow\" target=\"_blank\">https:\/\/git.server\/?p=sso.git;a=commit;h=fe977d32e9580551dffe8139396106ba25207cfe<\/a>\r\n21:59 &lt;@cosimo&gt; build-status auth\r\n21:59 &lt; deployer&gt; 24135 success cosimo <a href=\"https:\/\/test.server\/functests\/builds\/auth-unit\/24135\" rel=\"nofollow\" target=\"_blank\">https:\/\/test.server\/functests\/builds\/auth-unit\/24135<\/a>\r\n21:59 &lt; deployer&gt; 24135.2 success (manual) <a href=\"https:\/\/test.server\/functests\/builds\/auth-functional\/24135.2\" rel=\"nofollow\" target=\"_blank\">https:\/\/test.server\/functests\/builds\/auth-functional\/24135.2<\/a>\r\n<\/code><\/pre>\n<p>Another functionality of the bot is to detect new builds, and automatically send updates to a given channel, stating the project, the new VCS revision, the committer and a link to the continuous integration test run. Example:<\/p>\n<pre><code>\r\n17:22 -deployer:#chan- sso, fe977d3 success cosimo <a href=\"https:\/\/test.server\/functests\/builds\/opera-sso\/fe977d3\" rel=\"nofollow\" target=\"_blank\">https:\/\/test.server\/functests\/builds\/opera-sso\/fe977d3<\/a>\r\n<\/code><\/pre>\n<p>In the future, I also want to command the bot to initiate deployments. Anyway, the problem was that <code>Bot::BasicBot<\/code> apparently lacked support for sending IRC notices. This caused all the bot messages to interrupt the flow of IRC conversations. <a href=\"http:\/\/search.cpan.org\/dist\/Bot-BasicBot\/\" rel=\"nofollow\">Bot::BasicBot<\/a> has <a href=\"http:\/\/github.com\/hinrik\/bot-basicbot\" rel=\"nofollow\">source code also on github<\/a>, so I just <a href=\"http:\/\/github.com\/cosimo\/bot-basicbot\/\" rel=\"nofollow\">forked it and added support for IRC notices<\/a>. I just noticed that the author already pulled in the new changes. o\/<\/p>\n<p>It will still take years for this to land in Debian, but still&#8230; :-)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bot::BasicBot is a Perl module that provides a really easy, fast and convenient way to build plugin-based IRC bots. I&#39;m playing around with an IRC bot that should assist in continuously deploying projects. This bot has two main functionalities: keep track of continous integration builds initiate and keep track of deployments Right now the bot [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[359,360,361,49,231,91,119,50,104],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding the irc NOTICE capability to Bot::BasicBot - Random hacking<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding the irc NOTICE capability to Bot::BasicBot - Random hacking\" \/>\n<meta property=\"og:description\" content=\"Bot::BasicBot is a Perl module that provides a really easy, fast and convenient way to build plugin-based IRC bots. I&#039;m playing around with an IRC bot that should assist in continuously deploying projects. This bot has two main functionalities: keep track of continous integration builds initiate and keep track of deployments Right now the bot [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/\" \/>\n<meta property=\"og:site_name\" content=\"Random hacking\" \/>\n<meta property=\"article:published_time\" content=\"2010-11-15T20:10:54+00:00\" \/>\n<meta name=\"author\" content=\"cosimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cosimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/\"},\"author\":{\"name\":\"cosimo\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"headline\":\"Adding the irc NOTICE capability to Bot::BasicBot\",\"datePublished\":\"2010-11-15T20:10:54+00:00\",\"dateModified\":\"2010-11-15T20:10:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/\"},\"wordCount\":206,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"keywords\":[\"bot\",\"bot-basicbot\",\"continuous deployment\",\"cpan\",\"deployment\",\"development\",\"irc\",\"perl\",\"plugin\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/\",\"name\":\"Adding the irc NOTICE capability to Bot::BasicBot - Random hacking\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\"},\"datePublished\":\"2010-11-15T20:10:54+00:00\",\"dateModified\":\"2010-11-15T20:10:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding the irc NOTICE capability to Bot::BasicBot\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\",\"name\":\"Random hacking\",\"description\":\"Assume nothing. Code defensively. Keep it simple, stupid!\",\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\",\"name\":\"cosimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"caption\":\"cosimo\"},\"logo\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding the irc NOTICE capability to Bot::BasicBot - Random hacking","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/","og_locale":"en_US","og_type":"article","og_title":"Adding the irc NOTICE capability to Bot::BasicBot - Random hacking","og_description":"Bot::BasicBot is a Perl module that provides a really easy, fast and convenient way to build plugin-based IRC bots. I&#39;m playing around with an IRC bot that should assist in continuously deploying projects. This bot has two main functionalities: keep track of continous integration builds initiate and keep track of deployments Right now the bot [&hellip;]","og_url":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/","og_site_name":"Random hacking","article_published_time":"2010-11-15T20:10:54+00:00","author":"cosimo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"cosimo","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/#article","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/"},"author":{"name":"cosimo","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"headline":"Adding the irc NOTICE capability to Bot::BasicBot","datePublished":"2010-11-15T20:10:54+00:00","dateModified":"2010-11-15T20:10:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/"},"wordCount":206,"commentCount":0,"publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"keywords":["bot","bot-basicbot","continuous deployment","cpan","deployment","development","irc","perl","plugin"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/","url":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/","name":"Adding the irc NOTICE capability to Bot::BasicBot - Random hacking","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website"},"datePublished":"2010-11-15T20:10:54+00:00","dateModified":"2010-11-15T20:10:54+00:00","breadcrumb":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2010\/11\/adding-the-irc-notice-capability-to-botbasicbot\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.streppone.it\/cosimo\/blog\/"},{"@type":"ListItem","position":2,"name":"Adding the irc NOTICE capability to Bot::BasicBot"}]},{"@type":"WebSite","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website","url":"https:\/\/www.streppone.it\/cosimo\/blog\/","name":"Random hacking","description":"Assume nothing. Code defensively. Keep it simple, stupid!","publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1","name":"cosimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","caption":"cosimo"},"logo":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/465"}],"collection":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":0,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/465\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/categories?post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}