Simon Wistow (deflatermouse) wrote,
Simon Wistow

Bot::Infobot - an update

So Tom and I disagreed on the way that infobot factoids should be stored and then presented - I prefer a random factoid out a possible list, he prefers a massive concatenation of all of them (providing it's less than the irc line limit, obviously) so that


    <tom> bot, foo?
    <bot> tom - foo is bar or quux or quirka


    <muttley> bot, foo?
    <bot> muttley - foo is bar
    <muttley> bot, foo?
    <bot> muttley - foo is quux
    <muttley> bot, foo?
    <bot> muttley - foo is quirka

after a bit of back and forth I figured out a way to have both and went off to implement it/ But the code is icky so, being a good little coder I wanted to implement tests first. Which is dull. And so therefore I haven't done it yet. Bad me :(


  • 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.