Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     JessyModule.__init__(self, *args, **kwargs)
     self._stopped = False
     self._process_registry.add_process(self._process_registry.Groups.MUSIC,
                                        'mplayer', mpwrapper.MPlayer())
     self._playlist = yaml.load(open(os.path.join(os.path.dirname(mpwrapper.__file__),
                                                  'stations.conf'), 'r').read())
Ejemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     JessyModule.__init__(self, *args, **kwargs)
     self.status_tpl = (
         ('users', 'there {are_is} {val} user{pl}'),
         ('systems', 'of known {val} system{pl}'),
         ('channels', 'and {are_is} {val} channel{pl} to use'),
         ('advisories',
          '{val} advisory{pl}'),  # Technically typo "advisorys"
         # but sounds on the synthesizer right.
         ('affected_channels', 'however {val} channel{pl} needs patches'),
         ('affected_machines', 'and {val} machine{pl} needs updates'),
     )
     self._config = self._config.get(self.module_name(__file__))
     self.register(
         self.API,
         APICall(self._config.get('host'), self._config.get('user'),
                 self._config.get('password')))
Ejemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     JessyModule.__init__(self, *args, **kwargs)
     self._long_prefixes = [
         'I decide that', 'If you ask, then I think', 'I suggest that',
         'Stars says that', 'Aligning of quantum fluctuations shows that',
         'Solar interference suggests that'
     ]
     self._short_prefixes = [
         'I think', 'In my opinion', 'To be honest', 'Actually', 'Kind of',
         'I would say'
     ]
     self._decisions = [
         'it is a good idea', 'I would not go for it',
         'I would not do that', 'sell it to somebody else, do not do this',
         'grab it', 'it is surely a good idea',
         'unlikely this will do any good to you',
         'it is absolutely a good idea', 'it is no way',
         'the answer would be certainly yes',
         'this is a stupid thing to do. No, of course.', 'you should do it',
         'you would better not do it', 'it is better to refrain from it',
         'it is better to go with it'
     ]
Ejemplo n.º 4
0
 def __init__(self, *args, **kwargs):
     JessyModule.__init__(self, *args, **kwargs)