Ejemplo n.º 1
0
 def __init__(self, nodedict={}):
     EventBase.__init__(self, nodedict)
     self.element = "presence"
     self.jabber = True
     self.cmnd = "PRESENCE"
     self.cbtype = "PRESENCE"
     self.bottype = "xmpp"
Ejemplo n.º 2
0
 def __init__(self, nodedict={}):
     self.element = "message"
     self.jabber = True
     self.cmnd = "MESSAGE"
     self.cbtype = "MESSAGE"
     self.bottype = "xmpp"
     self.type = "normal"
     self.speed = 8
     EventBase.__init__(self, nodedict)
Ejemplo n.º 3
0
 def __init__(self, origin=None, payload=None, type="event", key=None, how="direct"):
     EventBase.__init__(self)
     self.createtime = time.time()
     self.origin = origin
     self.type = type
     self.hashkey = key
     if payload:
         self.payload = payload
         self.makeid()
         if key: self.makehmac(key)
         else:
             self.hashkey = self.id
             self.makehmac(self.id)
Ejemplo n.º 4
0
 def __init__(self, bot=None): 
     EventBase.__init__(self, bot=bot)
     self.bottype = "tornado"
     self.cbtype = "TORNADO"
     self.bot = bot
     self.how = "overwrite"