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