Make botrulez submodules public

This allows users of the library to use the commands' Args structs.
This commit is contained in:
Joscha 2024-12-04 17:14:55 +01:00
parent 8506a231dd
commit f973a819b6
3 changed files with 12 additions and 5 deletions

View file

@ -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`

View file

@ -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;

View file

@ -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]