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

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

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

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

        return 'Responses cleared'
Example #3
0
    def default(self):
        backup = Defaults.objects(command=self.lastcommand)
        if backup:
            return choice(backup).response

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

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