https://github.com/k-nasa/discordcat
CLI utility to post files and command output to discord
https://github.com/k-nasa/discordcat
cli command-line discord rust
Last synced: 12 months ago
JSON representation
CLI utility to post files and command output to discord
- Host: GitHub
- URL: https://github.com/k-nasa/discordcat
- Owner: k-nasa
- License: mit
- Created: 2020-08-23T02:53:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-09T08:35:13.000Z (over 4 years ago)
- Last Synced: 2025-06-08T21:36:31.372Z (about 1 year ago)
- Topics: cli, command-line, discord, rust
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 16
- Watchers: 0
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discordcat - CLI utility to post files and command output to discord
[](https://github.com/k-nasa/discordcat/actions)
[](https://crates.io/crates/discordcat)
## DEMO
https://user-images.githubusercontent.com/23740172/122637416-757e2e00-d129-11eb-95c9-8769a80059bb.mov
## Installing
### using cargo
```
cargo install discordcat
```
### using brew
```
brew install k-nasa/tap/discordcat
```
### using wget
```
wget https://github.com/k-nasa/discordcat/releases/download/0.2.0/discordcat_x86_64-unknown-linux-gnu.tar.gz
tar -xf discordcat_x86_64-unknown-linux-gnu.tar.gz
sudo mv ./discordcat_x86_64-unknown-linux-gnu/discordcat /usr/local/bin/
sudo chmod +x /usr/local/bin/discordcat
```
## Setup
```bash
$ discordcat --setup
```
## Usage
### send message
```bash
$ echo "hello discord" | discordcat
```
### send file
```bash
$ discordcat -f ./README.md
$ discordcat -f README.md --filename readme
```
### specify webhook url
```bash
$ echo hello | discordcat --webhook https://discordapp.com/api/webhooks/hoge/huga
```
```bash
discordcat 0.2.0
CLI utility to post files and command output to discord
USAGE:
discordcat [FLAGS] [OPTIONS]
FLAGS:
--setup
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--username
-c, --channel
-f, --file
--filename
--webhook
```
## Contribution
1. Fork it ( http://github.com/k-nasa/discordcat )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request
## Licence
[MIT](https://github.com/k-nasa/discordcat/blob/master/LICENCE)
## Author
[k-nasa](https://github.com/k-nasa)