From f973a819b6e3d1ff6c1d55b76747199e3cae5489 Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 4 Dec 2024 17:14:55 +0100 Subject: [PATCH] Make botrulez submodules public This allows users of the library to use the commands' Args structs. --- CHANGELOG.md | 7 +++++++ src/bot/botrulez.rs | 8 ++++---- src/bot/botrulez/uptime.rs | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 287c658..d741133 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,13 @@ Procedure when bumping the version number: ## Unreleased +### Added + +- `bot::botrulez::full_help` +- `bot::botrulez::ping` +- `bot::botrulez::short_help` +- `bot::botrulez::uptime` + ### Changed - **(breaking)** Switched to `jiff` from `time` diff --git a/src/bot/botrulez.rs b/src/bot/botrulez.rs index 3161ad6..2120ce3 100644 --- a/src/bot/botrulez.rs +++ b/src/bot/botrulez.rs @@ -1,8 +1,8 @@ //! The main [botrulez](https://github.com/jedevc/botrulez) commands. -mod full_help; -mod ping; -mod short_help; -mod uptime; +pub mod full_help; +pub mod ping; +pub mod short_help; +pub mod uptime; pub use self::full_help::{FullHelp, HasDescriptions}; pub use self::ping::Ping; diff --git a/src/bot/botrulez/uptime.rs b/src/bot/botrulez/uptime.rs index 1c98ff6..7f79ba3 100644 --- a/src/bot/botrulez/uptime.rs +++ b/src/bot/botrulez/uptime.rs @@ -100,7 +100,7 @@ where pub struct Args { /// Show how long the bot has been connected without interruption. #[arg(long, short)] - connected: bool, + pub connected: bool, } #[async_trait]