Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### msg de quien entro al chat
- def onJoin(self, room, user):
- print(user.name + " joined the chat!")
- ### msg de quien sale del chat
- def onLeave(self, room, user):
- print(user.name + " left the chat!")
- ### count user
- def onUserCountChange(self, room):
- print("users: " + str(room.usercount))
- ### contestar MPs
- def onPMMessage(self, pm, user, body):
- pm.message(user, "Bot Traps. Talk to %s or goto http://openingsyendings.chatango.com/ for more info" % owners[0])
- def onPMOfflineMessage(self, pm, user, body):
- pm.message(user, "Bot Traps. Talk to %s or goto http://openingsyendings.chatango.com/ for more info" % owners[0])
- ### conectar a una room
- rooms = ["animeflvme", "openingsyendings"]
- username = "cuenta"
- password = "password"
- bot.easy_start(rooms,username,password)
- ### hablar con x letra y color
- def onInit(self):
- self.setNameColor("000000")
- self.setFontColor("000000")
- self.setFontFace("Comic")
- self.setFontSize(14)
- ### cmd por defaul
- if cmd[0] == ".":
- prfx = True
- cmd = cmd[1:]
- else:
- prfx = False
- ### say
- if cmd.lower() == "say" and prfx:
- room.message(args)
- ### auto conect chat
- elif prefix and cmd == "join" or cmd == "goto":
- if user.name in owners:
- self.joinRoom(args)
- room.message("Successfull nii-chan Go to http://%s.chatango.com " % args)
- else:
- room.message("U're not my nii-chan ")
- ### leave chat
- if prefix and cmd == "leave":
- if user.name in owners:
- if "here" in args:
- args = room.name
- self.leaveRoom(args)
- room.message("Successfull nii-chan ")
- else:
- room.message("You're not my nii-chan ")
- ### datos etc
- botname = "botname"
- botpassword = "botpassword"
- botsys = "cellinux_shell-OS"
- botversion = 1.02
- botrelease = "Alpha"
- ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement