1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help me with this Omegle bot (Python)

Discussion in 'General Scripting Chat' started by iHaveAplan, Apr 25, 2013.

Tags:
  1. iHaveAplan

    iHaveAplan Newbie

    Joined:
    Nov 18, 2012
    Messages:
    8
    Likes Received:
    0
    I have this code, but I don't know how to make it send messages with different delay before every message. I know nothing about Python and I don't know how to make it connect to another stranger when someone disconnects or when the last message is send. Can you help me? :)

    I added the code in pastebin here: /XtaMPVCY
     
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    Not sure what your asking in your second question but adding a random delay in Python is pretty straight forward:
    Code:
    from random import randint
    from time import sleep
    
    
    sleep(randint(10,100))
    
    This will sleep for a random number of seconds between 10 and 100.

     
  3. divok

    divok Senior Member

    Joined:
    Jul 21, 2010
    Messages:
    1,016
    Likes Received:
    634
    Location:
    http://twitter.com/divok
    try using mechanize library , or use sikuli it will be good for a beginner