Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    WickeTD's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Sep 2009
    Posts
    4
    Downloads
    0
    Uploads
    0

    Is there an alternative for sleep in Perl so my IRC-bot can still use...

    ...functions while asleep? I'm trying to make it able to still respond while it's waiting, it's logical that with sleep it halts the whole bot, but how do I make it so that the bot still responds while waiting?
    Thanks.

  2. #2
    martinthurn's Avatar
    Senior Member

    Status
    Offline
    Join Date
    May 2009
    Posts
    183
    Downloads
    0
    Uploads
    0
    The short answer is "no". If you need to "respond", why are you sleeping in the first place?
    The programming construct it sounds like you need is called an "event loop". Read up on that.

 

 

Quick Reply Quick Reply

Click here to log in


How many letters in the word Rabroad

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ROGERS CALLED ABOUT AN IRC BOT/VIRUS?
    By CHUPPIAH S in forum Rogers
    Replies: 0
    Last Post: 01-19-2011, 04:57 AM
  2. Need Help writing a PHP IRC Bot?
    By Eric Jess in forum Discuss PHP
    Replies: 0
    Last Post: 01-07-2011, 05:59 AM
  3. Rogers says one of my computers has an irc bot virus?
    By goldenchopsticks in forum Rogers
    Replies: 0
    Last Post: 11-25-2010, 05:29 AM
  4. Replies: 0
    Last Post: 09-29-2010, 07:00 PM
  5. Replies: 1
    Last Post: 09-02-2009, 01:35 AM

Bookmarks

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •