valid json
This commit is contained in:
parent
f2aa285ad3
commit
b48acdc688
|
@ -1,5 +1,6 @@
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
|
import json
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import threading
|
import threading
|
||||||
|
@ -82,7 +83,9 @@ def relay_queue_input(
|
||||||
),
|
),
|
||||||
"insertion": "/tellraw @p %s",
|
"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))
|
log.debug("forwarding to process: {!r}".format(command))
|
||||||
process.send(command)
|
process.send(command)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue