From b48acdc688853db9a07f3944c3b2e398c8e58a2f Mon Sep 17 00:00:00 2001 From: chr Date: Thu, 2 Apr 2020 23:27:05 -0700 Subject: [PATCH] valid json --- wrapper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wrapper.py b/wrapper.py index d91bfb1..42f27ac 100644 --- a/wrapper.py +++ b/wrapper.py @@ -1,5 +1,6 @@ import argparse import logging +import json import re import subprocess import threading @@ -82,7 +83,9 @@ def relay_queue_input( ), "insertion": "/tellraw @p %s", } - command = "/tellraw @a {}\n".format(tellraw_params) + command = "/tellraw @a {}\n".format( + json.dumps(tellraw_params) + ) log.debug("forwarding to process: {!r}".format(command)) process.send(command) else: