summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-05-13 17:15:45 +0200
committerJokler <jokler.contact@gmail.com>2018-05-13 17:15:45 +0200
commitbef668bce8dc1022e7dde7b0da65fa64bb472cf4 (patch)
tree2539606c21f991e3b05ea4d98403ce9d9490187b
parent05178a7f5103a202723bf7acb90de2d72eedde1a (diff)
downloadfrippy-bef668bce8dc1022e7dde7b0da65fa64bb472cf4.tar.gz
frippy-bef668bce8dc1022e7dde7b0da65fa64bb472cf4.zip
Remind: Change syntax and update help
-rw-r--r--src/plugins/remind/mod.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/remind/mod.rs b/src/plugins/remind/mod.rs
index 382fcaa..8f9b628 100644
--- a/src/plugins/remind/mod.rs
+++ b/src/plugins/remind/mod.rs
@@ -161,7 +161,10 @@ impl<T: 'static + Database> Remind<T> {
fn help(&self) -> &str {
"usage: remind <subcommand>\r\n\
- subcommands: new, list, delete, help"
+ subcommands: user, list, delete, help\r\n\
+ examples\r\n\
+ remind user foo to sleep in 1 hour\r\n\
+ remind user bar to leave early on 1.1 at 16:00 every week"
}
}
@@ -195,7 +198,7 @@ impl<T: Database> Plugin for Remind<T> {
let sub_command = command.tokens.remove(0);
let response = match sub_command.as_ref() {
- "new" => self.set(command).map(|s| s.to_owned()),
+ "user" => self.set(command).map(|s| s.to_owned()),
"delete" => self.delete(command).map(|s| s.to_owned()),
"list" => self.list(&source),
"help" => Ok(self.help().to_owned()),