1
0
Fork 0

actual fix

This commit is contained in:
khr 2020-04-03 05:54:49 +02:00
parent 6e8a9b7207
commit d4e1bf6913
1 changed files with 3 additions and 4 deletions

View File

@ -47,10 +47,8 @@ def on_receive_events(transaction):
m_user, m_cont
if global_msg_queue is not None:
global_msg_queue.add({
"command",
'/tellraw @a {"text":"<{}> {}","insertion":"/tellraw @p %s"}'.format(
m_user, m_cont
),
"command":
'/tellraw @a {"text":"<' + m_user + '> ' + m_cont + '","insertion":"/tellraw @p %s"}',
})
else:
LOG.warning("No message queue available")
@ -214,6 +212,7 @@ def receive_messages(
def main():
global global_msg_queue
logging.basicConfig(level=logging.DEBUG)
parser = argparse.ArgumentParser()
parser.add_argument("--matrix_server_name", required=True)