Exemplo n.º 1
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleBaguette"
     self.users = userList.UserList()
     self.lines = lines.LinesSeqRnd("modules/resources/bag.txt")
     self.probabilityBag = Probability(self.RATE_BAG)
     self.probabilityNotBag = Probability(self.RATE_NOT_BAG)
Exemplo n.º 2
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleBaguette"
     self.users = userList.UserList()
     self.lines = lines.LinesSeqRnd("modules/resources/bag.txt")
     self.probabilityBag = Probability(self.RATE_BAG)
     self.probabilityNotBag = Probability(self.RATE_NOT_BAG)
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleImageFetcher"
     self.limitator = LimitatorMultiple(
         Limitator(10, 900, True),
         Limitator(120, 60*60, False),
     )
Exemplo n.º 4
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRandom"
     self.nsfw = Nsfw(self.logger)
     self.images_type = list(
         [i for i in self.nsfw.bonjours.keys() if i != "monsieur"])
     self.bullshit = Bullshit()
Exemplo n.º 5
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "NSFW"
     self.nsfw = Nsfw(self.logger)
     self.limitator = LimitatorMultiple(
         Limitator(5, 60, True),
         Limitator(50, 600, False),
     )
Exemplo n.º 6
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "NSFW"
     self.nsfw = Nsfw(self.logger)
     self.limitator = LimitatorMultiple(
         Limitator(5, 60, True),
         Limitator(50, 600, False),
     )
Exemplo n.º 7
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleAss"
     self.Url = "http://api.obutts.ru/noise/1"
     self.mediaUrl = "http://media.obutts.ru"
     self.limitator = LimitatorMultiple(
         Limitator(5, 60, True),
         Limitator(50, 600, False),
     )
Exemplo n.º 8
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleAss"
     self.Url = "http://api.obutts.ru/noise/1"
     self.mediaUrl = "http://media.obutts.ru"
     self.limitator = LimitatorMultiple(
         Limitator(5, 60, True),
         Limitator(50, 600, False),
     )
Exemplo n.º 9
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleImageFetcher"
     self.limitator = LimitatorMultiple(
         Limitator(10, 900, True),
         Limitator(120, 60*60, False),
     )
     provider = DuckDuckGoImagesProvider()
     self.sender = ImageQuerySender(self.bot, provider)
Exemplo n.º 10
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleImageFetcher"
     self.limitator = LimitatorMultiple(
         Limitator(10, 900, True),
         Limitator(120, 60 * 60, False),
     )
     provider = DuckDuckGoImagesProvider()
     self.sender = ImageQuerySender(self.bot, provider)
Exemplo n.º 11
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleEddyMalou"
Exemplo n.º 12
0
 def __init__(self, bot, name, cmd, provider):
     ModuleBase.__init__(self, bot)
     self.name = name
     self.cmd = cmd
     self.provider = provider
Exemplo n.º 13
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRage"
     self.ragelist = FileList("botTest/ragelist")
Exemplo n.º 14
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleWordCounter"
     self.speakers = []
     self.load()
Exemplo n.º 15
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ConversationListener"
     self.listUserId = []
     self.counter = 0
     self.initConnection()
Exemplo n.º 16
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleWordCounter"
     self.speakers = []
     self.load()
Exemplo n.º 17
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleBadWords"
     self.bad = bad.Bad("modules/resources/bad.txt")
Exemplo n.º 18
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleEddyMalou"
Exemplo n.º 19
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "BestSentences"
     self.best_sentences = BestSentences()
     threading.Thread(target=self.best_sentences.load).start()
Exemplo n.º 20
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "Module9GAG"
Exemplo n.º 21
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "BestSentences"
     self.best_sentences = BestSentences()
     threading.Thread(target=self.best_sentences.load).start()
Exemplo n.º 22
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRage"
     self.ragelist = FileList("botTest/ragelist")
Exemplo n.º 23
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ChangeGroupName"
Exemplo n.º 24
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleListModule"
Exemplo n.º 25
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleListModule"
Exemplo n.º 26
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "xkcd"
Exemplo n.º 27
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRandom"
     self.nsfw = Nsfw(self.logger)
     self.images_type = list([i for i in self.nsfw.bonjours.keys() if i != "monsieur"])
     self.bullshit = Bullshit()
Exemplo n.º 28
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "xkcd"
Exemplo n.º 29
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleExplosm"
Exemplo n.º 30
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRandTube"
     self.availableChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW-"
     self.availableNumbers = "1234567890"
Exemplo n.º 31
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleTimeleft"
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ConversationListener"
     self.listUserId = []
     self.counter = 0
     self.initConnection()
Exemplo n.º 33
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleAdmin"
     self.admin = Admin()
     self.bot.admin = self.admin
Exemplo n.º 34
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleAdmin"
     self.admin = Admin()
     self.bot.admin = self.admin
Exemplo n.º 35
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRandTube"
     self.availableChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW-"
     self.availableNumbers = "1234567890"
Exemplo n.º 36
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRandShit"
     self.bullshit = Bullshit()
Exemplo n.º 37
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleVote"
     self.manager = VoteManager()
Exemplo n.º 38
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleTroll"
     self.reportedPeople = UserCount(self.NUMBER_REPORT_MESSAGES)
Exemplo n.º 39
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleSlogan"
     self.lines = lines.LinesSeqRnd("modules/resources/slogans.txt")
Exemplo n.º 40
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleSlogan"
     self.lines = lines.LinesSeqRnd("modules/resources/slogans.txt")
Exemplo n.º 41
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleVersion"
Exemplo n.º 42
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleTimeleft"
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ChangeGroupName"
Exemplo n.º 44
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleVote"
     self.manager = VoteManager()
Exemplo n.º 45
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleVersion"
Exemplo n.º 46
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "Module9GAG"
Exemplo n.º 47
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleMovieQuote"
Exemplo n.º 48
0
 def __init__(self, bot, name, cmd, provider):
     ModuleBase.__init__(self, bot)
     self.name = name
     self.cmd = cmd
     self.provider = provider