浏览代码

Add alias !rcm for !rc_monitor.

pull/10/merge
Ben Kurtovic 8 年前
父节点
当前提交
17f87c6e16
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      commands/rc_monitor.py

+ 2
- 1
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):


正在加载...
取消
保存