Menu:

A Blog, by John Turner, featuring a collection of disconnected musings.
Latest posts
qwop
language_highs
pirates
not_irc
spam_again
spam
gress
ps3s
computer_hat
google_knows

irc_lastfm_facebook

Posted on 2008/02/19 15:16:49
Tue.15:13:23 < Norgg> !((lastfm norgg))
Tue.15:13:28 <@Malcolm> Norgg: might be listening to Bruce Springsteen  Erie Canal

Sets my facebook status to what I’m currently listening to on lastfm.

This is the future of the internet.


Comments

Norgg said on 2008/02/19 15:52:12

Just to be clear about this, the above goes through something like the following process (this may be wrong in places, sometimes Malcolm scares and confuses me):

  1. I type the command into irc (terminal + ssh + irssi).
  2. The command is sent to an irc channel.
  3. Malcolm sees the command.
  4. Malcolm parses the line, using his grammar which is defined on a mediawiki page.
  5. Malcolm looks up the webservice corresponding to the lastfm command. From the list of modules on another mediawiki page.
  6. The lastfm webservice is called with “norgg” as the parameter, which looks up what I am currently listening to from last.fm.
  7. The string returned by this looks something like “norgg is listening to Foo Bar”.
  8. The parentheses mean that this string is parsed again as a command.
  9. Malcolm looks up the webservice corresponding to the norgg command.
  10. The norgg command is called with the rest of the string returned by lastfm as its arguments.
  11. The norgg command sets my facebook status and returns the string it was set to.
  12. The string is printed out to irc.
  13. Fin.


chazzer said on 2008/03/12 23:54:01

~


Sorry, comments currently disabled.