stat_summoner/module/lolstats/
mod.rs

1/// 🛠 **Module commands**: Contains all bot commands for the Discord bot.
2///
3/// This module organizes the different commands used by the bot. Each command is stored in its own file
4/// within the `commands` directory. These commands are registered and used through the bot's interaction
5/// with Discord via the Poise framework.
6///
7/// # Files in this module:
8/// - `lolstats.rs`: The command for fetching and displaying League of Legends player stats.
9///
10/// # Example:
11/// To use commands in this module, ensure they are registered in the bot's main framework setup:
12///
13/// ```rust
14/// use commands::lolstats::lolstats;
15///
16/// #[shuttle_runtime::main]
17/// async fn main() {
18///     let framework = poise::Framework::builder()
19///         .options(poise::FrameworkOptions {
20///             commands: vec![lolstats()], // Register the lolstats command
21///             ..Default::default()
22///         })
23///         .build();
24/// }
25/// ```
26/// new command `followgames` will be added to the bot's command list soon.
27///
28/// As more commands are added, they will be included here and imported into the main bot setup.
29pub mod lolstats;
30pub mod utils;