Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ch
- import time
- class bot(ch.RoomManager):
- timeleft = 0
- starttime = 0
- def onMessage(self, room, user, message):
- print("[{0}] {1}: {2}".format(room.name, user.name.title(), message.body))
- if 100 >= timeleft >= 1:
- print('success')
- else:
- print('fail')
- loop = 1
- while loop == 1 :
- timeleft = starttime - int(time.clock())
- if timeleft <=0:
- timeleft = 200
- rooms = ["testgroup444"]
- username = "user"
- password = "name"
- bot.easy_start(rooms,username,password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement