didier/data/database_classes/custom_commands.py

16 lines
283 B
Python
Raw Normal View History

2021-05-17 18:14:33 +02:00
from attr import dataclass
@dataclass
class CustomCommand:
"""
Class to store custom commands being triggered
"""
id: int = None
name: str = None
response: str = None
alias_used: str = None
def __nonzero__(self):
return self.id is not None