From 17f87c6e166fdd5bf46d3e466ccd1975ab566153 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 12 Jan 2016 01:49:22 -0500 Subject: [PATCH] Add alias !rcm for !rc_monitor. --- commands/rc_monitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/rc_monitor.py b/commands/rc_monitor.py index e6df35a..e7010e4 100644 --- a/commands/rc_monitor.py +++ b/commands/rc_monitor.py @@ -38,6 +38,7 @@ class RCMonitor(Command): """Monitors the recent changes feed for certain edits and reports them to a dedicated channel.""" name = "rc_monitor" + commands = ["rc_monitor", "rcm"] hooks = ["msg", "rc"] def setup(self): @@ -71,7 +72,7 @@ class RCMonitor(Command): if not self._channel: return return isinstance(data, RC) or ( - data.is_command and data.command == self.name) + data.is_command and data.command in self.commands) def process(self, data): if isinstance(data, RC):