fetching from db & dataclass

This commit is contained in:
Stijn De Clercq 2021-05-17 18:14:33 +02:00
parent f6d06eb489
commit 3cfc87b7e1
4 changed files with 95 additions and 1 deletions

View file

View file

@ -0,0 +1,15 @@
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