2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-13 07:10:49 +00:00
Comrad/comrad/backend/callers.py
2020-09-29 14:09:56 +01:00

27 lines
675 B
Python

import os,sys; sys.path.append(os.path.abspath(os.path.join(os.path.abspath(os.path.join(os.path.dirname(__file__),'..')),'..')))
from comrad import *
from comrad.backend import *
from comrad.cli import *
# from comrad.backend.the_telephone import *
# from comrad.backend.the_telephone import *
class Caller(Operator):
"""
Variant of an Operator which handles local keys and keymaking.
"""
async def ring_ring(self,msg,**y):
# stop
return await super().ring_ring(
msg,
to_whom=self.op,
get_resp_from=self.phone.ring_ring,
**y
)
# @hack: repurposing this for now as a narrator