1 个不稳定版本
0.2.0 | 2021年6月19日 |
---|
#51 在 #command-output
14KB
225 行
discordcat - 命令行工具,用于将文件和命令输出发布到discord
演示
安装
使用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>
贡献
- 分支( http://github.com/k-nasa/discordcat )
- 创建功能分支(git checkout -b my-new-feature)
- 提交更改(git commit -am '添加一些功能')
- 推送到分支(git push origin my-new-feature)
- 创建新的Pull Request
许可协议
作者
依赖项
~7–11MB
~220K SLoC