From c1ce94987ad73c811f8987d2330ca7d99933b7d7 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 16 Oct 2016 00:03:23 +0100 Subject: send_delayed plugin: Give feedback on using /send_delayed. --- plugins/send_delayed.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/send_delayed.py b/plugins/send_delayed.py index 299de6e2..7a3ddc60 100644 --- a/plugins/send_delayed.py +++ b/plugins/send_delayed.py @@ -38,15 +38,19 @@ class Plugin(BasePlugin): @command_args_parser.quoted(2) def command_delayed(self, args): if args is None: + self.core.command.help('send_delayed') return delay_str, txt = args delay = common.parse_str_to_secs(delay_str) - if not delay_str: + if not delay: + self.api.information('Failed to parse %s.' % delay_str, 'Error') return tab = self.api.current_tab() timed_event = timed_events.DelayedEvent(delay, self.say, (tab, txt)) self.api.add_timed_event(timed_event) + self.api.information('Delayed message will be sent in %ds (%s).' + % (delay, delay_str), 'Info') def completion_delay(self, the_input): txt = the_input.get_text() -- cgit v1.2.3