Telegram bot that sends a random fox image on /fox command.
Images sourced from wohlsoft.ru/images/foxybot/foxes.
Requires Go 1.22+.
git clone https://github.com/yourname/foxbot
cd foxbot
BOT_TOKEN=your_token go run .Build for Linux and copy to the server:
GOOS=linux GOARCH=amd64 go build -o foxbot .
scp foxbot user@your-server:/usr/local/bin/foxbotCreate and enable a systemd service:
sudo tee /etc/systemd/system/foxbot.service << 'EOF'
[Unit]
Description=Fox Telegram Bot
After=network.target
[Service]
ExecStart=/usr/local/bin/foxbot
Restart=on-failure
RestartSec=5
Environment=BOT_TOKEN=your_token
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now foxbot