25 lines
428 B
Python
Executable file
25 lines
428 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
from evennia import CmdSet
|
|
|
|
from commands.command import Command
|
|
|
|
class CmdPet(Command):
|
|
"""
|
|
Pet a 'friendly' pet.
|
|
"""
|
|
key = "pet"
|
|
|
|
def func(self):
|
|
"""
|
|
Implements the pet command.
|
|
"""
|
|
self.obj.pet_response(self.caller)
|
|
|
|
class CmdPetSet(CmdSet):
|
|
"""
|
|
Things associated with pets.
|
|
"""
|
|
def at_cmdset_creation(self):
|
|
self.add(CmdPet)
|