https://github.com/kalvin807/decho
Echo from unix shell to discord. 🚀
https://github.com/kalvin807/decho
cli discord go unix
Last synced: 5 months ago
JSON representation
Echo from unix shell to discord. 🚀
- Host: GitHub
- URL: https://github.com/kalvin807/decho
- Owner: kalvin807
- License: wtfpl
- Created: 2023-11-20T09:42:47.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-21T14:14:38.000Z (over 2 years ago)
- Last Synced: 2023-11-21T15:28:41.673Z (over 2 years ago)
- Topics: cli, discord, go, unix
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Decho
Echo from unix shell to discord. 🚀
## Installation
```bash
go install github.com/kalvin807/decho@latest
```
## Usage
- `-f, --file`: Path to the attachment file (8mb max)
- `-w, --webhook`: Specify the target Discord webhook URL
If no webhook is specified, it will use `DECHO_DISCORD_WEBHOOK` from environment variable
## Example
To send `myfile.txt` to a specified Discord webhook:
```bash
decho -f myfile.txt -w https://discord.com/api/webhooks/1234567890
```
To say hi
```bash
decho -w https://discord.com/api/webhooks/1234567890 hi
```
You can also pipe the message
```bash
echo "hi" | decho -w https://discord.com/api/webhooks/1234567890
```