| @@ -13,6 +13,7 @@ devices. | |||||
| """ | """ | ||||
| import re | import re | ||||
| import datetime | |||||
| from .util import InvalidMessageError | from .util import InvalidMessageError | ||||
| @@ -25,11 +26,14 @@ class BaseMessage(object): | |||||
| raw = None | raw = None | ||||
| """The raw message text""" | """The raw message text""" | ||||
| timestamp = None | |||||
| """The timestamp of the message""" | |||||
| def __init__(self): | def __init__(self): | ||||
| """ | """ | ||||
| Constructor | Constructor | ||||
| """ | """ | ||||
| pass | |||||
| self.timestamp = datetime.datetime.now() | |||||
| def __str__(self): | def __str__(self): | ||||
| """ | """ | ||||