コード例 #1
0
ファイル: peeps.py プロジェクト: benjamincudi/MongoBot
    def decrement(self):
        if not self.values:
            self.chat("you need to give someone your hate")
            return
        entity = " ".join(self.values)

        if not incrementEntity(entity, -1):
            self.chat("mongodb seems borked")
            return
        return self.lastsender + " brought " + entity + " to " + str(entityScore(entity))
コード例 #2
0
    def decrement(self):
        if not self.values:
            self.chat("you need to give someone your hate")
            return
        entity = " ".join(self.values)

        if not incrementEntity(entity, -1):
            self.chat("mongodb seems borked")
            return
        return self.lastsender + " brought " + entity + " to " + str(
            entityScore(entity))
コード例 #3
0
ファイル: peeps.py プロジェクト: jsbronder/MongoBot
    def increment(self):
        if not self.values:
            self.chat("you need to give someone your love")
            return
        entity = " ".join(self.values)
        if entity == 'jcb': 
            return

        if not incrementEntity(entity, random.randint(1, 100000)):
            self.chat("mongodb seems borked")
            return
        return self.lastsender + " brought " + entity + " to " + str(entityScore(entity))
コード例 #4
0
ファイル: peeps.py プロジェクト: psaintlaurent/MongoBot
    def increment(self):
        if not self.values:
            self.chat("you need to give someone your love")
            return
        entity = " ".join(self.values)
        if entity == 'jcb':
            return

        if not incrementEntity(entity, random.randint(1, 100000)):
            self.chat("mongodb seems borked")
            return
        return self.lastsender + " brought " + entity + " to " + str(
            entityScore(entity))