irclib Question: A bot that does a specified process, repeatedly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shonen
    New Member
    • Mar 2007
    • 7

    irclib Question: A bot that does a specified process, repeatedly

    Hi guys!

    Alright so here is my question, I've been messing around with irclib in my python programs creating a bot. I just want to add a little bit of functionality to it!

    So basically, what i have in mind is that it reads a socket, pulls the information that I want from the socket (parses it all up and gives me what i want), and updates the channel I'm in (or for testing sake, a PM to me over the network)

    Now, the tricky part (least i think so) is having it check every 60 seconds for, in this case song info, if the song info changes it updates the channel, if it DOESN'T change, it just waits another 60 seconds to get the information. Now, while it's waiting in those 60 seconds, it can also accept commands from the line such as, !chaninfo or basically just does it's normal functionality.

    Now this is what i have:

    A function to pull down the info and parse it, returning them to variables
    The bot has the ability to execute public/private commands

    Been rackin' my brain a crap load! lol

    Hopefully, it's clear what i want to do :D

    Thanks everyone!

    ~shonen
Working...