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