def on_msg_receive(msg):
if msg.out and not binlog_done:
return;
if msg.dest.id == our_id: # direct message
peer = msg.src
else: # chatroom
peer = msg.dest
if msg.text.startswith("ping"):
peer.send_msg("PONG!")
while True:
#do something
#sendMessage
With the loop i can't check the incoming message. How can i fix this?
In my python script i have this situation:
With the loop i can't check the incoming message. How can i fix this?