Exemple #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)
 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),
     )
Exemple #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()
 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),
     )
Exemple #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),
     )
Exemple #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),
     )
Exemple #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),
     )
 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)
Exemple #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)
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleEddyMalou"
Exemple #12
0
 def __init__(self, bot, name, cmd, provider):
     ModuleBase.__init__(self, bot)
     self.name = name
     self.cmd = cmd
     self.provider = provider
Exemple #13
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRage"
     self.ragelist = FileList("botTest/ragelist")
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleWordCounter"
     self.speakers = []
     self.load()
Exemple #15
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ConversationListener"
     self.listUserId = []
     self.counter = 0
     self.initConnection()
Exemple #16
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleWordCounter"
     self.speakers = []
     self.load()
Exemple #17
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleBadWords"
     self.bad = bad.Bad("modules/resources/bad.txt")
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleEddyMalou"
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "BestSentences"
     self.best_sentences = BestSentences()
     threading.Thread(target=self.best_sentences.load).start()
Exemple #20
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "Module9GAG"
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "BestSentences"
     self.best_sentences = BestSentences()
     threading.Thread(target=self.best_sentences.load).start()
Exemple #22
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRage"
     self.ragelist = FileList("botTest/ragelist")
Exemple #23
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ChangeGroupName"
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleListModule"
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleListModule"
Exemple #26
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "xkcd"
 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()
Exemple #28
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "xkcd"
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleExplosm"
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRandTube"
     self.availableChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW-"
     self.availableNumbers = "1234567890"
 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()
Exemple #33
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleAdmin"
     self.admin = Admin()
     self.bot.admin = self.admin
Exemple #34
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleAdmin"
     self.admin = Admin()
     self.bot.admin = self.admin
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRandTube"
     self.availableChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW-"
     self.availableNumbers = "1234567890"
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleRandShit"
     self.bullshit = Bullshit()
Exemple #37
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleVote"
     self.manager = VoteManager()
Exemple #38
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleTroll"
     self.reportedPeople = UserCount(self.NUMBER_REPORT_MESSAGES)
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleSlogan"
     self.lines = lines.LinesSeqRnd("modules/resources/slogans.txt")
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleSlogan"
     self.lines = lines.LinesSeqRnd("modules/resources/slogans.txt")
Exemple #41
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleVersion"
Exemple #42
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleTimeleft"
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ChangeGroupName"
Exemple #44
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleVote"
     self.manager = VoteManager()
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleVersion"
Exemple #46
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "Module9GAG"
Exemple #47
0
 def __init__(self, bot):
     ModuleBase.__init__(self, bot)
     self.name = "ModuleMovieQuote"
 def __init__(self, bot, name, cmd, provider):
     ModuleBase.__init__(self, bot)
     self.name = name
     self.cmd = cmd
     self.provider = provider