xChat Auto Send

I want him to resend a message in 10 seconds when the button is clicked. can you add this code?

from phBot import *
import phBotChat
import QtBind

gui = QtBind.init(name, ‘Chat Example’)

name = QtBind.createLineEdit(gui, ‘’, 10, 10, 100, 20)
text = QtBind.createLineEdit(gui, ‘’, 10, 40, 250, 20)
send = QtBind.createButton(gui, ‘send_message’, ‘Send’, 10, 70)

def send_message():

player = QtBind.text(gui, name)
message = QtBind.text(gui, text)

if len(player) > 0 and len(message) > 0:

    phBotChat.Private(player, message)

log(’[%s] Loaded’ % name)

Use the conditions in the bot instead.

How so?

I don’t know, can’t you help?