#discord #command-line-tool #cli #command-output #post #utility #webhook

app discordcat

CLI utility to post files and command output to discord

1 unstable release

0.2.0 Jun 19, 2021

#51 in #command-output

Custom license

14KB
225 lines

discordcat - CLI utility to post files and command output to discord

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

$ discordcat --setup

Usage

send message

$ echo "hello discord!!" | discordcat

send file

$ discordcat -f ./README.md
$ discordcat -f README.md --filename readme

specify webhook url

$ echo hello | discordcat --webhook https://discordapp.com/api/webhooks/hoge/huga
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 <username>
    -c, --channel <channel>
    -f, --file <file>
        --filename <filename>
        --webhook <webhook_url>

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

Author

k-nasa

Dependencies

~7–11MB
~220K SLoC