working v1
This commit is contained in:
commit
5b54f3f636
19 changed files with 403 additions and 0 deletions
28
typs.py
Normal file
28
typs.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# typs.py
|
||||
|
||||
import queue
|
||||
import asyncio
|
||||
|
||||
|
||||
class Mail:
|
||||
|
||||
def __init__(self, owner, target, text):
|
||||
self.owner = owner
|
||||
self.target = target
|
||||
self.text = text
|
||||
|
||||
|
||||
class MailBox:
|
||||
|
||||
def __init__(self, name):
|
||||
|
||||
self.name = name # just for logging purposes.
|
||||
self.inbox = asyncio.Queue()
|
||||
self.outbox = queue.Queue()
|
||||
|
||||
|
||||
class Intent:
|
||||
|
||||
def __init__(self, name, params: dict):
|
||||
self.name = name
|
||||
self.params = params
|
||||
Loading…
Reference in a new issue