aboutsummaryrefslogtreecommitdiff
path: root/examples/06_command_framework/src
diff options
context:
space:
mode:
authorIllia <[email protected]>2016-12-14 17:19:16 +0300
committerAustin Hellyer <[email protected]>2016-12-14 11:35:28 -0800
commita39647d3ba1650a4dd4c92bd40001959828000c7 (patch)
tree3065d93509b494622dac457aa8540982454b01c2 /examples/06_command_framework/src
parentRelease v0.1.2 (diff)
downloadserenity-a39647d3ba1650a4dd4c92bd40001959828000c7.tar.xz
serenity-a39647d3ba1650a4dd4c92bd40001959828000c7.zip
Framework blocks, disabled commands, improvements
Diffstat (limited to 'examples/06_command_framework/src')
-rw-r--r--examples/06_command_framework/src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/06_command_framework/src/main.rs b/examples/06_command_framework/src/main.rs
index e89308f..c9191a8 100644
--- a/examples/06_command_framework/src/main.rs
+++ b/examples/06_command_framework/src/main.rs
@@ -80,6 +80,8 @@ fn main() {
let counter = data.get_mut::<CommandCounter>().unwrap();
let entry = counter.entry(command_name.clone()).or_insert(0);
*entry += 1;
+
+ true
})
// Very similar to `before`, except this will be called directly _after_
// command execution.