def __init__(self, bot, what='praise', path='praises'): Plugin.__init__(self, bot) self.what = what self.path = path setattr(self, 'on_bang_' + what, self._on_praise) setattr(self, 'on_bang_new' + what, self._on_newpraise)
def __init__(self, bot): Plugin.__init__(self, bot) self.channels = {}