From: Andrew Gundersen Date: Fri, 11 Dec 2020 21:23:59 +0000 (-0600) Subject: stable remote app X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=2287ddd6f1a140052f2f4e1e76b58035fad42d8c;p=abc-messenger stable remote app --- diff --git a/__pycache__/mail.cpython-38.pyc b/__pycache__/mail.cpython-38.pyc index 67d4585..26b40b8 100644 Binary files a/__pycache__/mail.cpython-38.pyc and b/__pycache__/mail.cpython-38.pyc differ diff --git a/__pycache__/mailroom.cpython-38.pyc b/__pycache__/mailroom.cpython-38.pyc index cf55692..ab55b25 100644 Binary files a/__pycache__/mailroom.cpython-38.pyc and b/__pycache__/mailroom.cpython-38.pyc differ diff --git a/__pycache__/schemes.cpython-38.pyc b/__pycache__/schemes.cpython-38.pyc index 1831229..302b849 100644 Binary files a/__pycache__/schemes.cpython-38.pyc and b/__pycache__/schemes.cpython-38.pyc differ diff --git a/__pycache__/server.cpython-38.pyc b/__pycache__/server.cpython-38.pyc index 41fac4e..dbfe3b2 100644 Binary files a/__pycache__/server.cpython-38.pyc and b/__pycache__/server.cpython-38.pyc differ diff --git a/__pycache__/session.cpython-38.pyc b/__pycache__/session.cpython-38.pyc index db3107c..550c1e7 100644 Binary files a/__pycache__/session.cpython-38.pyc and b/__pycache__/session.cpython-38.pyc differ diff --git a/__pycache__/typs.cpython-38.pyc b/__pycache__/typs.cpython-38.pyc index d33211d..8f56c5d 100644 Binary files a/__pycache__/typs.cpython-38.pyc and b/__pycache__/typs.cpython-38.pyc differ diff --git a/mail.py b/mail.py index c2a61a5..1f6cbbb 100644 --- a/mail.py +++ b/mail.py @@ -30,7 +30,8 @@ class Mail: owner = self.crimata_id target = p.get("target") text = p.get("text") - mail = typs.Mail(owner, target, text) + audio = p.get("audio") + mail = typs.Mail(owner, target, text, audio) return mail @staticmethod @@ -38,8 +39,8 @@ class Mail: name = "message" params = { "owner": mail.owner, - "text": mail.text #dev only + "text": mail.text, #dev only + "audio": mail.audio } intent = typs.Intent(name, params) - return intent - \ No newline at end of file + return intent \ No newline at end of file diff --git a/schemes.py b/schemes.py index 9a85986..b8ecb26 100644 --- a/schemes.py +++ b/schemes.py @@ -22,6 +22,7 @@ class Schemes: print(f"Initalized for {self.crimata_id}") # Push message to anoter Crimata ID. + #! Push message to backend. def message(self, intent): text = intent.params.get("text") target = intent.params.get("target") #crimata_id diff --git a/session.py b/session.py index 9aa152f..9c1d648 100644 --- a/session.py +++ b/session.py @@ -41,6 +41,7 @@ class Session(schemes.Schemes, agent.Agent, mail.Mail): self.handle_intent(intent) # Send mail back to agent. + #! Pulling message from backend. async def deliver_mail(self): while self.on: diff --git a/typs.py b/typs.py index 2ef992f..2368957 100644 --- a/typs.py +++ b/typs.py @@ -10,6 +10,7 @@ class Mail: self.owner = owner self.target = target self.text = text + self.audio = audio class MailBox: