4 个版本 (2 个破坏性版本)
0.2.0 | 2021年1月23日 |
---|---|
0.1.1 | 2021年1月19日 |
0.1.0 | 2021年1月18日 |
0.0.1 | 2021年1月18日 |
#4 in #hiding
36KB
844 行
smalld_rust
SmallD 致力于成为 Discord API 的最小化客户端。它的目标是让您使用 Discord API,而不隐藏或抽象它。
安装
smalld_rust 发布在 crates.io 上。将其添加到 Cargo.toml 的依赖项部分。
[dependencies]
smalld_rust = "*"
要使用最新开发版本,请将其作为 git 依赖项添加。
[dependencies]
smalld_rust = { git = "https://github.com/princesslana/smalld_rust", branch = "main" }
文档
文档发布在 docs.rs 上。有关帮助,还可以在 Discord 项目中心 Discord 服务器上获取。
示例
运行示例 ping 机器人
$ SMALLD_TOKEN=<discord bot token> RUST_LOG=info cargo run --example ping_bot
警告:启用调试级别日志记录将在日志消息中输出您的令牌,因此请小心发送这些信息。
联系和贡献
在 Discord 上的 Discord 项目中心 查找 smalld_rust 频道。
依赖项
~7.5MB
~228K SLoC