pokegold/.travis/webhook.sh
Rangi 4f6f1926a5 Match hooh_gold.2bpp.lz and lugia_silver.2bpp.lz, and fix the Travis CI webhook.sh
To do: revise hooh_gold.png and lugia_silver.png to resemble their screens, and use rgbgfx options to match the 2bpp tiles
2020-06-15 10:46:52 -04:00

16 lines
465 B
Bash
Executable File

#!/bin/sh
set -e
root="$(readlink -e "$(dirname "$0")/..")"
# Report unnamed symbols
content="$("$root/tools/unnamed.py" -r "$root" "$root/pokegold.sym" | head)"
curl -H 'Content-Type: application/json' -X POST "$POKEGOLD_DISCORD_WEBHOOK_URL" -d@- << EOF
{
"username": "$POKEGOLD_DISCORD_WEBHOOK_USERNAME",
"avatar_url": "$POKEGOLD_DISCORD_WEBHOOK_AVATAR_URL",
"content": "\`\`\`$(echo "$content" | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')\`\`\`"
}
EOF