diff options
| author | Lakelezz <[email protected]> | 2018-07-21 01:48:12 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-07-21 01:48:12 +0200 |
| commit | 40c8248d107b3c6cad785502e6d619669aba6431 (patch) | |
| tree | c8553c60b7e9b1367c4d6d51fcbc4e00143cd979 /examples/05_command_framework/src | |
| parent | Do not suggest command if no command is actually related to input. (#350) (diff) | |
| download | serenity-40c8248d107b3c6cad785502e6d619669aba6431.tar.xz serenity-40c8248d107b3c6cad785502e6d619669aba6431.zip | |
Add default-commands for command-groups (#351)
Diffstat (limited to 'examples/05_command_framework/src')
| -rw-r--r-- | examples/05_command_framework/src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/05_command_framework/src/main.rs b/examples/05_command_framework/src/main.rs index ca766db..be8ff41 100644 --- a/examples/05_command_framework/src/main.rs +++ b/examples/05_command_framework/src/main.rs @@ -170,6 +170,8 @@ fn main() { .group("Emoji", |g| g // Sets a single prefix for a group: .prefix("emoji") + // Sets a command that will be executed if only a group-prefix was passed. + .default_cmd(dog) .command("cat", |c| c .desc("Sends an emoji with a cat.") .batch_known_as(vec!["kitty", "neko"]) // Adds multiple aliases |