<div dir="ltr">So, I've been a long time lurker on the DFW.pm mailing list and decided to go ahead and get active by attending last night's meeting.  Of course, at the last minute I got saddled with an emergency database restore for work, so I was unable to attend.<div>

<br></div><div>I did want to join in on the IRC bot fun, so I whipped up a little plugin of my own, that I call "Discuss".  Hate sitting in a dead IRC channel?  This will let you ask the bot for discussion topics based on blog posts at <a href="http://blogs.perl.org">blogs.perl.org</a>.</div>

<div><br></div><div>I'm running into an issue though.  I'm using the rand() function to let the bot pick random posts and random return phrases, but it doesn't seem to be changing after the initial request.  My guess is that this is an issue with POE and the rand numbers are only generated once at compile time, so subsequent calls to the subroutine do not produce different results.  Anyone know how to get around that?  Or if that is even the issue?</div>

<div><br></div><div><a href="https://github.com/PsyDefect/dfwbot/blob/master/DFWpm/BotPlugin/Discuss.pm">https://github.com/PsyDefect/dfwbot/blob/master/DFWpm/BotPlugin/Discuss.pm</a><br></div></div><div class="gmail_extra">

<br clear="all"><div>Sincerely,<br><br>John Dexter<br></div>
<br><br><div class="gmail_quote">On Tue, Nov 12, 2013 at 7:29 PM, Coyo <span dir="ltr"><<a href="mailto:coyo@darkdna.net" target="_blank">coyo@darkdna.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    I can't believe it's my birthday already.<br>
    <br>
    I feel so oooooooooooooold.<br>
    <br>
    My birthday is tomorrow, the 13th. A hump day.<br>
    <br>
    I hope that's an omen.<div class="im"><br>
    <div><br>
      <br>
      On 11/12/2013 04:42 PM, John Fields wrote:<br>
    </div>
    <blockquote type="cite">
      <p dir="ltr">2nd Wed is huuuummmpppddaaaayyy. :)</p>
      <p dir="ltr">We will be running some home made bots and covering
        different ways to run them under Linux.  Maybe add a stats page,
        or a tabulated log of results?  Bring your ideas and "what ifs".</p>
      <p dir="ltr">As usual it is at the <a href="http://dallasmakerspace.org" target="_blank">dallasmakerspace.org</a> at
        7pm.  Some food afterwards at a local eatery.</p>
      <br>
    </blockquote>
    <br>
  </div></div>

<br>_______________________________________________<br>
Dfw-pm mailing list<br>
<a href="mailto:Dfw-pm@pm.org">Dfw-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/dfw-pm" target="_blank">http://mail.pm.org/mailman/listinfo/dfw-pm</a><br>
<br></blockquote></div><br></div>