Created
May 30, 2021 21:48
-
-
Save Zeko369/aeb39337e8ada97e006d78b78fb8b1b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tracker: | |
slots: Dict[str, Any] | |
def __init__(self, slots="", latest_message=None): | |
self.slots = loads(slots) | |
self.latest_message = latest_message | |
def latest_message(self): | |
return self.latest_message | |
def get_slot(self, key): | |
if key in self.slots.keys(): | |
return self.slots[key] | |
return None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment