Skip to content

Instantly share code, notes, and snippets.

View tinaxd's full-sized avatar
🏠
Working from home

tinaxd tinaxd

🏠
Working from home
View GitHub Profile
@tinaxd
tinaxd / factorio_watch.sh
Created April 29, 2025 01:01
Factorio watcher (send join/leave logs to Discord)
#!/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."
function FindProxyForURL(url, host) {
return "SOCKS localhost:1080";
}