stage four unchecked (bridge with teams and self dm). undocumented
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
HOST="${MM_BRIDGE_HOST:-127.0.0.1}"
|
||||
PORT="${MM_BRIDGE_PORT:-8765}"
|
||||
|
||||
# Read JSON from stdin or argument
|
||||
if [[ $# -gt 0 ]]; then
|
||||
INPUT="$1"
|
||||
else
|
||||
read -r INPUT
|
||||
fi
|
||||
|
||||
printf '%s\n' "$INPUT" | nc -w 2 "$HOST" "$PORT"
|
||||
Reference in New Issue
Block a user