Advertisement
AlanReiAkemi

nih cok

Sep 6th, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #####connections###############################################
  2. ###############################
  3.  
  4. ###on connect function
  5. def onConnect(self, room):
  6. print("Connected")
  7. self.setNameColor("F9F")
  8. self.setFontColor("F33")
  9. self.setFontFace("1")
  10. self.setFontSize(13)
  11. self.enableBg()
  12. self.enableRecording()
  13. room.message("Hello everyone!!! ^.^ ")
  14.  
  15. ###on reconnect function
  16. def onReconnect(self,room):
  17. print("Reconnected")
  18. room.message("I am reconnected.")
  19. self.setNameColor("F9F")
  20. self.setFontColor("F33")
  21. self.setFontFace("1")
  22. self.setFontSize(13)
  23. self.enableBg()
  24. self.enableRecording()
  25. room.message("Hello everyone!!! ^.^ ")
  26.  
  27. ###on disconnect function
  28. def onDisconnect(self, room):
  29. print("Disconnected")
  30. room.reconnect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement