moss-n-puddles/commands/pets.py
2025-04-21 21:55:13 -07:00

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)