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

app discordcat

命令行工具,用于将文件和命令输出发布到discord

1 个不稳定版本

0.2.0 2021年6月19日

#51#command-output

自定义许可协议

14KB
225

discordcat - 命令行工具,用于将文件和命令输出发布到discord

演示

https://user-images.githubusercontent.com/23740172/122637416-757e2e00-d129-11eb-95c9-8769a80059bb.mov

安装

使用cargo

cargo install discordcat

使用brew

brew install k-nasa/tap/discordcat

使用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

设置

$ discordcat --setup

使用方法

发送消息

$ echo "hello discord!!" | discordcat

发送文件

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

指定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>

贡献

  1. 分支( http://github.com/k-nasa/discordcat
  2. 创建功能分支(git checkout -b my-new-feature)
  3. 提交更改(git commit -am '添加一些功能')
  4. 推送到分支(git push origin my-new-feature)
  5. 创建新的Pull Request

许可协议

MIT

作者

k-nasa

依赖项

~7–11MB
~220K SLoC