예제 #1
0
    def cleardefaults(self):
        if not self.values:
            return 'Clear what?'

        Defaults.objects(command=self.values[0]).delete()

        return 'Responses cleared'
예제 #2
0
    def cleardefaults(self):
        if not self.values:
            return 'Clear what?'

        Defaults.objects(command=self.values[0]).delete()

        return 'Responses cleared'
예제 #3
0
파일: cortex.py 프로젝트: johnmarc/MongoBot
    def default(self):
        backup = Defaults.objects(command=self.lastcommand)
        if backup:
            return choice(backup).response

        self.act(" cannot do this thing :'(")
예제 #4
0
    def default(self):
        backup = Defaults.objects(command=self.lastcommand)
        if backup:
            return choice(backup).response

        self.act(" cannot do this thing :'(")