Make botrulez submodules public
This allows users of the library to use the commands' Args structs.
This commit is contained in:
parent
8506a231dd
commit
f973a819b6
3 changed files with 12 additions and 5 deletions
|
|
@ -14,6 +14,13 @@ Procedure when bumping the version number:
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- `bot::botrulez::full_help`
|
||||||
|
- `bot::botrulez::ping`
|
||||||
|
- `bot::botrulez::short_help`
|
||||||
|
- `bot::botrulez::uptime`
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- **(breaking)** Switched to `jiff` from `time`
|
- **(breaking)** Switched to `jiff` from `time`
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
//! The main [botrulez](https://github.com/jedevc/botrulez) commands.
|
//! The main [botrulez](https://github.com/jedevc/botrulez) commands.
|
||||||
mod full_help;
|
pub mod full_help;
|
||||||
mod ping;
|
pub mod ping;
|
||||||
mod short_help;
|
pub mod short_help;
|
||||||
mod uptime;
|
pub mod uptime;
|
||||||
|
|
||||||
pub use self::full_help::{FullHelp, HasDescriptions};
|
pub use self::full_help::{FullHelp, HasDescriptions};
|
||||||
pub use self::ping::Ping;
|
pub use self::ping::Ping;
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ where
|
||||||
pub struct Args {
|
pub struct Args {
|
||||||
/// Show how long the bot has been connected without interruption.
|
/// Show how long the bot has been connected without interruption.
|
||||||
#[arg(long, short)]
|
#[arg(long, short)]
|
||||||
connected: bool,
|
pub connected: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue