This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Factorio Watcher Script | |
# Provide DISCORD_WEBHOOK_URL as environment variable | |
# Usage: | |
# ./factorio <args> | DISCORD_WEBHOOK_URL=<webhook url> ./factorio_watch.sh | |
# Check envvar | |
if [ -z "$DISCORD_WEBHOOK_URL" ]; then | |
echo "DISCORD_WEBHOOK_URL is not set. Exiting." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) { | |
return "SOCKS localhost:1080"; | |
} |