From 6a68f68e6cb95af38666a4f5d9a6ad4b39fa88c6 Mon Sep 17 00:00:00 2001 From: Lakelezz <12222135+Lakelezz@users.noreply.github.com> Date: Mon, 15 Oct 2018 20:48:49 +0200 Subject: Prefix only Command (#416) --- examples/05_command_framework/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/05_command_framework/src') diff --git a/examples/05_command_framework/src/main.rs b/examples/05_command_framework/src/main.rs index 1f442c3..e69934c 100644 --- a/examples/05_command_framework/src/main.rs +++ b/examples/05_command_framework/src/main.rs @@ -81,6 +81,9 @@ fn main() { .allow_whitespace(true) .on_mention(true) .prefix("~") + // A command that will be executed + // if nothing but a prefix is passed. + .prefix_only_cmd(about) // You can set multiple delimiters via delimiters() // or just one via delimiter(",") // If you set multiple delimiters, the order you list them -- cgit v1.2.3