Simon Wistow (deflatermouse) wrote,
Simon Wistow


dipsy is's infobot. She's, err, unique.

Yesterday I got fed up with dipsy saying

    14:09 <@muttley> change 140 USD into GPB
    14:09 <+dipsy> site scraping removed by request

and fixed the to use Finance::Currency::Convert::XE. I also added a which co-opts the convert keyword, previously a synonym for (ex?)change, and uses Math::Units to convert between various formats. You can now do

    18:14 <muttley> convert 1 m into miles
    18:14 <dipsy> 1 m is 0.000621371192237334 miles
    18:14 <muttley> convert 1 min to seconds
    18:14 <dipsy> 1 min is 60 seconds


    18:14 <muttley> convert 1 gallon into cm^3
    18:14 <dipsy> 1 gallon is 3785.411784 cm^3

and even

    18:13 <muttley> convert 100 hz into rpm
    18:13 <dipsy> 100 hz is 6000 rpm

Which is cool. (The diff to is here).

This morning I also stole a feature from Tom Insam's mind bot based on his Bot::BasicBot::Pluggable and URI::Title modules and hacked in URI titling :

    10:32 <muttley>
    10:32 <dipsy>  [ L a u n c h p a d ] 
    10:33 <muttley>
    10:33 <dipsy>  [ - London Perl Mongers ] 

I still harbour plans to convert dipsy over to Bot::BasicBot::Pluggable.

But that's for another day.

Tags: bot, currency convert, err, ex change, fed, finance, keyword, london, math units, stole, synonym, uri

  • 90s Music Moving

    I realised that it's stupid posting my 90s Music Monday stuff to both LJ and Vox every week so I've decided that I'm going to keep LJ as my technical…

  • On Vox: 90s Music Monday

    At the same time that this was released The Divine Comedy also released a track called " Something For The Weekend" - or " Something…

  • On Vox: 90s Music Monday

    We're going a little leftfield here. And showing my age. This is one of the classic 16 bit demos - technically some of the graphics aren't…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.