1 import craw
, threading
, time
, utility
3 class flash_thread(threading
.Thread
):
4 def __init__(self
, id, delay
):
5 threading
.Thread
.__init
__(self
)
12 while self
.run_thread
:
14 time
.sleep(self
.delay
)
17 packet
= '\x4b\x00\x00\x00\x00' + utility
.pack_number(id, 4)
18 craw
.send_packet(packet
)