2019-01-01 03:05:34 -08:00
|
|
|
#!/bin/sh
|
2019-02-09 16:30:23 -08:00
|
|
|
set -e
|
2019-01-01 03:05:34 -08:00
|
|
|
|
2019-02-09 16:30:23 -08:00
|
|
|
root="$(readlink -e "$(dirname "$0")/..")"
|
2019-01-01 03:05:34 -08:00
|
|
|
|
|
|
|
# Report unnamed symbols
|
2019-02-09 16:30:23 -08:00
|
|
|
content="$("$root/tools/unnamed.py" -r "$root" "$root/pokecrystal.sym" | grep -v -e '^lib/mobile/' -e '^mobile/' | head)"
|
2019-01-01 03:05:34 -08:00
|
|
|
|
|
|
|
curl -H 'Content-Type: application/json' -X POST "$POKECRYSTAL_DISCORD_WEBHOOK_URL" -d@- << EOF
|
|
|
|
{
|
|
|
|
"username": "$POKECRYSTAL_DISCORD_WEBHOOK_USERNAME",
|
|
|
|
"avatar_url": "$POKECRYSTAL_DISCORD_WEBHOOK_AVATAR_URL",
|
|
|
|
"content": "\`\`\`$(echo "$content" | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')\`\`\`"
|
|
|
|
}
|
|
|
|
EOF
|