![]() |
|||||||
![]() |
|||||||
|
|
|||||||
|
January 18, 2010
first steps
So how does one create a bot? Well, she needs a way to talk with people, which means some kind of command-line interace with a scrolling text pane. I could use a terminal window, an IM chat window, or an IRC client. The latter seems best, as it allows others to easily chat with her as well. Smilla will have many teachers. So what channel will she frequent? I currently run two channels on freenode: #immuexa (my company channel) and #etoys (for Squeak Etoys). Waverly lives on both, logging all talk and injecting optional simplistic call/response chatter. Smilla will need her own space from the start. I'll call it simply #smilla. Just joined the room. Good, it's not being used by anyone. Next step is to get freenode's ChanServ to protect it /msg chanserv register #smilla newpass /msg chanserv set #smilla guard on Notice: The GUARD flag has been set for channel #smilla. Hello ChanServ! Welcome to the #smilla channel. Now to get our third room participant up and running, which means delving into my Storybot code, which is currently used only for Waverly. Open up IntelliJ, my Java IDE. I'll use the Squeakland project, since that website's the only production site using the newest 3.2 version of Storymill. All others are still stuck on version 2.2 from a year and a half ago. Open up the com.immuexa.storymill.storybot package. Seven files ... one constants interface, one exception class, three struts actions, one experimental RDF class, and the main class SmStoryBot. My first question for this file is: can I start more than one bot easily? SmStoryBot aStoryBot = ( SmStoryBot ) aApp.getAttribute( NM_STORYBOT ); Guess not. I can have multiple channels, but only one bot. So what does this class give me that I need? Startup, initialization, logging. Too much. Looks like it's time for some major refactoring. Let's separate the concerns: SmBotManager, SmBotChannel, SmBotLogger, SmBotHandler. This might take a while. |
About Me Contact Me making money musings process publicity semantic web software give status daily protect your flow fool your inertia warm up your brain log it and leave it don't break the box sharing hats circumstance arising first steps smilla RDF Intro Angela Talk: a semweb introduction W3C Semantic Web Original Road Map SciAm Article SemanticWeb.org RDF Resource Guide SchemaWeb SUMO Full Article Index July 2010 May 2010 January 2010 January 2009 December 2008 November 2008 October 2008 August 2008 June 2008 April 2008 March 2008 February 2008 January 2008 November 2007 October 2007 March 2006 January 2006 December 2005 November 2005 August 2005 July 2005 May 2005 April 2005 March 2005 January 2005 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 link to this site
![]()
|
||||||
![]() |
|||||||
|
"Big Fractal Tangle" is a phrase used by Tim Berners-Lee at ISWC 2003
to describe his vision of the Semantic Web (used with permission) "Tidepool" and "Storymill" are trademarks of Immuexa Corporation. Website design copyright © 2003-2004 by Immuexa. |
|||||||