diff --git a/src/main.rs b/src/main.rs index b02f543..26eeaac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -145,12 +145,15 @@ impl Handler { if command.starts_with("territories ") { command = command.replacen("territories", "guild", 1); } - if command.starts_with("top ") { + if command.starts_with("top ") || command == "top" { command = command.replacen("top", "topguilds", 1); } if command.starts_with("leaderboard ") { command = command.replacen("leaderboard", "topguilds", 1); } + if command.starts_with("stats ") { + command = command.replacen("stats", "guild", 1); + } let command = &command; if command.starts_with("guild") { @@ -190,7 +193,7 @@ impl Handler { } else if command.starts_with("prefix") { wc_prefix(command, msg)?; } else { - let commands = ["topguilds", "leaderboard", "top", "prefix", "warfeed", "unwarfeed", "livefeed", "unlivefeed", "status", "crop", "guild", "territories", "player", "territory", "info", "help"]; + let commands = ["topguilds", "leaderboard", "top", "prefix", "warfeed", "unwarfeed", "livefeed", "unlivefeed", "status", "crop", "guild", "stats", "territories", "player", "territory", "info", "help"]; let mut min = usize::max_value(); let mut min_command = "help"; for command_b in &commands {