sending your terminal stuff via discord webhooks to your channel
Send stylish messages from your terminal straight to Discord – like a pro.
Discofy.sh is a tiny, bash-friendly tool that lets you send formatted messages to a Discord webhook. Whether it’s for backups, alerts, or just a hello – your terminal now speaks Discord.
- ✅ Plain or code-block formatted messages
- ✅ Easy to use with
echo,pipe, or arguments - ✅ Works in cronjobs, shell scripts, or interactively
- ✅ Discord webhook support
- ✅ Lightweight & dependency-free (pure bash + curl)
- Download the script:
Needs curl and jq
curl -o discofy.sh https://raw.githubusercontent.com/suuhm/discofy.sh/refs/heads/main/discofy.sh
chmod +x discofy.sh- Set your webhook URL in the script or as an env var:
export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/123456..."echo "Backup complete at $(date)" | ./discofy.shecho "ls -la output:" && ls -la | ./discofy.sh --code./discofy.sh --plain "System update finished ✅"
./discofy.sh --code "uptime && free -m"| Option | Description |
|---|---|
--plain |
Send message as plain text |
--code |
Send message as a code block |
Plain:
[OK] Backup complete at Mon Apr 14 17:00:00 CEST 2025
Code block:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 930G 804G 87G 91% /
echo "🎉 Hello from Discofy.sh!" | ./discofy.sh --plain- Looks great in logs
- Works in any Linux environment
- Makes automation & alerting more fun
- Terminal to Discord in one line
- Backup completion
- System alerts
- Script results
- Monitoring
Created with ☕ and 🐚 by you.