Beispiel #1
0
 def execute_command(self, mess, cmd, args):
     """ Overridden from JabberBot
     """
     try:
         reply = MUCJabberBot.execute_command(self, mess, cmd, args)
     except CmdError, e:
         reply = e.value
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     MUCJabberBot.__init__(self, *args, **kwargs)
     self._obsr_default = ephem.Observer()
     self._obsr_default.long, self._obsr_default.lat = '15.05728', '50.76111'
     self._obsr_default.elevation = 400
     self._arg_re = re.compile('[ \t]+')