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
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
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
self.handle_intent(intent)
# Send mail back to agent.
+ #! Pulling message from backend.
async def deliver_mail(self):
while self.on: