November 14, 2009

Wave Bible Bot

After a month of using Google Wave, I finally made my first Wave bot. My initial idea was to make a Bible bot using the sword API, but I couldn't find an easy way of doing that in python, and I am very reluctant to use Java. So instead, I did a python bot which parses BibleGateway.com to retrieve the results. Later, I added modules to deal with other translations, such as ESV, NET and specific French versions such as Colombe, TOB or NBS.


What does it do?



Flammard is a Bible bot for Google Wave. You can add it to a wave, and it will replace some specific patterns with other content.

Currently, it recognizes two kinds of patterns:

  • <verse verseReference [from Version]> is replaced by the verse. The version is optional. Examples: <verse Gen 1:1 from NIV> or <verse Acts 3:5-15>
  • <verselink verseReference [from Version]> is replaced by a link to the verse on another website. The version is optional. Examples: <verselink Gen 1:1 from NIV> or <verselink Acts 3:5-15>



Known versions



The Bible bot uses several resources in order to support as many Bible versions as possible.

The versions currently supported are:



In all cases, the version is optional. When possible, the bot will try to find the right version for your blip depending on the language you have typed in the context of the tag.



Example








Live demo



Here is a video demo of the bot working (as of today's functionalities):




How can I add this bot to a wavelet ?



Simply add flammard@appspot.com as a participant to your wavelet.


Where can I find the source code?



The project is hosted on Launchpad: https://launchpad.net/wavebiblebot. You are welcome to report bugs and wishes, or to send patches.

6 comments:

Jordan said...

Wow, so maybe there is a point in using Google Wave. :-)

RJP Computing said...

How do I add it to Google \/\/ave? What is the bots email?

Raphaël said...

@Jordan: there is surely a point, and more :-) I'll soon blog about my first month using Wave.

@RJP Computing: Add biblegateway-bot@appspot.com to your wave. It might break in the next few days as I plan to change a few internals in the bot to fix some small issues and add style functionalities to verses.

Josh said...

Thanks - this is exactly what I was looking for! It works great!

lucidfox.org said...

I don't get Google Wave. It's like it tries to do many things at once and does them all worse than a specialized tool.

Maybe I'm just too old to realize the OBVIOUS benefits of these new toys for cool kids like Twitter and Google Wave. *siiigh*

Raphaël said...

@lucidfox: The thing with Google Wave is precisely that it's not a tool, contrarily to Twitter. Wave is first and foremost a protocol. Saying Google Wave does a bad job at replacing other tools is like saying email is bad because Mutt does not handle images. The current interface at googlewave.com and wavesandbox.com are just sample implementations of this protocol, but there's much more you can do with it. Some people are beginning to use it to power their blogs, rebase their forum apps on it, and many other things can be done.

In short, think of it not so much as a communication tool, but rather as a protocol that could federate a lot of existing tools such as IM, wikis, forums, email, social networks, Google docs, etc.