예제 #1
0
 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')
예제 #2
0
파일: __init__.py 프로젝트: bok/pipobot
 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 = []
예제 #3
0
 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()
예제 #4
0
 def __init__(self, bot):
     desc = "The bot will not let you say anything about him !!"
     ListenModule.__init__(self, bot, name="repartie", desc=desc)
예제 #5
0
 def __init__(self, bot):
     desc = "Pipo crie"
     ListenModule.__init__(self, bot, name="crianswer", desc=desc)
예제 #6
0
 def __init__(self, bot):
     desc = "Pipo dit"
     ListenModule.__init__(self, bot, name="dianswer", desc=desc)
예제 #7
0
 def __init__(self, bot):
     desc = "Extracting title of page from URL"
     ListenModule.__init__(self, bot, name="url", desc=desc)
예제 #8
0
 def __init__(self, bot):
     desc = "The bot will not let you say anything about him !!"
     ListenModule.__init__(self, bot, name="repartie", desc=desc)
예제 #9
0
 def __init__(self, bot):
     desc = "Extracting title of page from URL"
     ListenModule.__init__(self, bot, name="url", desc=desc)
예제 #10
0
 def __init__(self, bot):
     ListenModule.__init__(self,
                           bot,
                           name="last_words",
                           desc="Logs last words")
예제 #11
0
 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])
예제 #12
0
 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()
예제 #13
0
 def __init__(self, bot):
     ListenModule.__init__(self, bot, name="last_words", desc="Logs last words")
예제 #14
0
 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])