nothing-unencr
quadrismegistus 4 years ago
parent e5e9b24af5
commit 2fc275781d

@ -43,7 +43,7 @@ class Message(Logger):
self.log(f'msg #{i+1}: {msg}')
dict_merge(md,msg.msg_d)
# self.log('returning meta')
return meta_msg
return md
def __repr__(self):
msg_d_str=dict_format(self.msg_d,tab=6)

@ -65,6 +65,7 @@ class TheOperator(Operator):
# decrypt all of it!
msg_obj.decrypt()
self.log('I am now decrypted!',msg_obj)
self.log('my messages:',msg_obj.messages)
#self.log(f'Operator understood message route: {msg_obj.route}')
self.log('meta msg!',msg_obj.meta_msg)

@ -145,7 +145,7 @@ PATH_OPERATOR_WEB_CONTACTS_DIR = '/home/ryan/www/website-komrade/.contacts'
PATH_OPERATOR_WEB_CONTACT_OP_URL = f'http://{KOMRADE_URL}/.contacts/TheOperator.png'
PATH_OPERATOR_WEB_CONTACT_PH_URL = f'http://{KOMRADE_URL}/.contacts/TheTelephone.png'
PAUSE_LOGGER = False
# dangerous! leave on only if absolutely necessary for initial dev
ALLOW_CLEARNET = True

@ -52,11 +52,13 @@ class Logger(object):
mytype = type(self).__name__
caller = calframe[1][3]
log(f'\n[{mytype}.{caller}()]',*x)
try:
pause()
clear_screen()
except KeyboardInterrupt:
exit()
if PAUSE_LOGGER:
try:
pause()
clear_screen()
except KeyboardInterrupt:
exit()
import binascii,base64
def isBase64(sb):

Loading…
Cancel
Save