Exemplo n.º 1
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     # liste des bar autorisés par les Michels
     liste_bar = {
         u"L'ouest": [u'ouest', u'louest', u"l'ouest"],
         u"Keep it Weird": [u'keepitweird', u'kiw'],
         u"Not a Beer": [u'notabeer', u"ntb"],
         u"Paye ta bière": [
             u'payetabiere', u'ptb', u'payetabière', u'paietabière',
             u'paietabiere'
         ],
         u"La Bobine": [u'bob', u'bobine', u'labobine', u'labob'],
         u"Le Café du Nord":
         [u'lecafedunord', u'lecafédunord', u'cafedunord', u'cafédunord'],
         u"Le Square": [u"lesquare", u"square"],
     }
     self.liste_bar = liste_bar
     self.liste_grelakins = ("df8aa692a608e3feb1e543"
                             "e6bf7d85d24f5bcdf483afb90c5fb05fdd",
                             "3176a98d9ea2e86560a11e17df5"
                             "486f46a8d9c126ec5e597250b63f9",
                             "bcf917ae806d717c9b30e26f2b"
                             "4db42877a8227e8ca45a41ca09a561",
                             "d6253e761810b4bb6fa2bed4"
                             "41b8c6a570b28a17d2a099246b72b076",
                             "9cc6bfeb92c01ab30d29bf32"
                             "e2e95d1951fcbc9831e0dcf164cbf672",
                             "564e41e2e05847deb9be779b"
                             "7362f56a1449bb1e644929c372966dbf")
     self.date_bar = ""
Exemplo n.º 2
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self._chuck = InnocentHand(chuckNorrisFacts)
     self._riddles = InnocentHand(riddles)
     self._fortunes = InnocentHand(fortunes)
     self._contrepeteries = InnocentHand(contrepeteries)
     bot._mutable_attributes["autoTofadeThreshold"] = int
     bot._mutable_attributes["riddleMaxDist"] = int
Exemplo n.º 3
0
 def __init__(self, *args):
     Plugin.__init__(self, *args)
     self.classifier = None
     self.load({})
     self.curr_msg = ''
     self.last_msg = ''
     self.last_joke = ()
     self.just_joked = False
Exemplo n.º 4
0
 def __init__(self, *args):
     Plugin.__init__(self, *args)
     self.classifier = None
     self.load({})
     self.curr_msg = ""
     self.last_msg = ""
     self.last_joke = ()
     self.just_joked = False
Exemplo n.º 5
0
 def __init__ (self, bot):
     Plugin.__init__(self, bot)
     self._jokes = InnocentHand(jokes)
     self._chuck = InnocentHand(chuckNorrisFacts)
     self._tofades = InnocentHand(tofades)
     self._riddles = InnocentHand(riddles)
     self._fortunes = InnocentHand(fortunes)
     self._contrepetries = InnocentHand(contrepetries)
     bot._mutable_attributes["autoTofadeThreshold"] = int
     bot._mutable_attributes["riddleMaxDist"] = int
Exemplo n.º 6
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self._chuck = InnocentHand(chuckNorrisFacts)
     self._tofades = InnocentHand(tofades)
     self._riddles = InnocentHand(riddles)
     self._fortunes = InnocentHand(fortunes)
     self._contrepeteries = InnocentHand(contrepeteries)
     bot._mutable_attributes["autoTofadeThreshold"] = int
     bot._mutable_attributes["riddleMaxDist"] = int
     ev = TofadeEvent(self)
     self.bot.cron.schedule(ev)
Exemplo n.º 7
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     balldata = [ "Essaye plus tard" , "Essaye encore" , "Pas d'avis"
                , "C'est ton destin" , "Le sort en est jeté"
                , "Une chance sur deux" , "Repose ta question"
                , "D'après moi oui" , "C'est certain" , "Oui absolument"
                , "Tu peux compter dessus" , "Sans aucun doute"
                , "Très probable" , "Oui" , "C'est bien parti"
                , "C'est non" , "Peu probable" , "Faut pas rêver"
                , "N'y compte pas" , "Impossible"
                ]
     self.ball = InnocentHand(balldata)
Exemplo n.º 8
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     balldata = [
             "Essaye plus tard", "Essaye encore", "Pas d'avis",
             "C'est ton destin", "Le sort en est jeté",
             "Une chance sur deux", "Repose ta question",
             "D'après moi oui", "C'est certain", "Oui absolument",
             "Tu peux compter dessus", "Sans aucun doute",
             "Très probable", "Oui", "C'est bien parti",
             "C'est non", "Peu probable", "Faut pas rêver",
             "N'y compte pas", "Impossible"
             ]
     self.ball = InnocentHand(balldata)
Exemplo n.º 9
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self.lol_rate = [TimeSlice()]
     bot._mutable_attributes['lolRateDepth'] = int
Exemplo n.º 10
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self.scores = {}
     self._euler_nicks = set()
Exemplo n.º 11
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self.previous_speaker = None
     self.scores = {}
Exemplo n.º 12
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self.lol_rate = [TimeSlice()]
     bot._mutable_attributes['lolRateDepth'] = int
Exemplo n.º 13
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self.scores = {}
     self._euler_nicks = set()
Exemplo n.º 14
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self.previous_speaker = None
     self.scores = {}
Exemplo n.º 15
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
Exemplo n.º 16
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self.msg = None
Exemplo n.º 17
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self.history = deque([], 2)
     self.scores = {}
Exemplo n.º 18
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self.user = None
     self.tweet = None
     self.time = datetime.min
     self.frequency = timedelta(minutes=10)
Exemplo n.º 19
0
 def __init__(self, bot):
     Plugin.__init__(self, bot)
     self.msg = None