def __init__(self, bot): desc = _(u"Pipo does not like trolls.") ListenModule.__init__(self, bot, name='troll', desc=desc) config = ListConfigParser() config.read(self.config_path) self.words = [w.lower() for w in config.get('trolls', 'words')] self.friday = config.get('trolls', 'friday') self.others = config.get('trolls', 'others')
def __init__(self, bot): desc = "Extracting title of page from URL" ListenModule.__init__(self, bot, name = "url", desc = desc) settings = self.bot.settings try: self.repost = settings['modules']['url']['repost'] except KeyError: self.repost = False try: self.repost_ignore = settings['modules']['url']['repost-ignore'] except KeyError: self.repost_ignore = []
def __init__(self, bot): desc = "Un petit jeu où il faut trouver le mot que le bot aura choisi" ListenModule.__init__(self, bot, name="hidden_word", desc=desc) self.word = self.get_word()
def __init__(self, bot): desc = "The bot will not let you say anything about him !!" ListenModule.__init__(self, bot, name="repartie", desc=desc)
def __init__(self, bot): desc = "Pipo crie" ListenModule.__init__(self, bot, name="crianswer", desc=desc)
def __init__(self, bot): desc = "Pipo dit" ListenModule.__init__(self, bot, name="dianswer", desc=desc)
def __init__(self, bot): desc = "Extracting title of page from URL" ListenModule.__init__(self, bot, name="url", desc=desc)
def __init__(self, bot): ListenModule.__init__(self, bot, name="last_words", desc="Logs last words")
def __init__(self, bot): desc = "Shooting ducks" ListenModule.__init__(self, bot, name="coin", desc=desc) self.ducks = list(orig_ducks) for eye in u"0Oo+": self.ducks.extend([duck.replace(u"°", eye) for duck in orig_ducks])