stat_summoner/module/followgames/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/// - `followgames.rs`: The command for following a player's games and tracking their match data for a specified period.
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::followgames::followgames;
15///
16/// #[shuttle_runtime::main]
17/// async fn main() {
18/// let framework = poise::Framework::builder()
19/// .options(poise::FrameworkOptions {
20/// commands: vec![followgames()], // Register the followgames command
21/// ..Default::default()
22/// })
23/// .build();
24/// }
25/// ```
26/// The `followgames` command allows users to track the games of a summoner in real time for a period between 1 and 48 hours.
27///
28/// As more commands are added, they will be included here and imported into the main bot setup.
29pub mod followgames;
30pub mod utils;