mirror of https://github.com/stijndcl/didier
16 lines
283 B
Python
16 lines
283 B
Python
|
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
|