Add !trackedwords in modules/words.py
This commit is contained in:
parent
c1e5fd9a52
commit
226d835374
1 changed files with 8 additions and 0 deletions
|
@ -75,6 +75,14 @@ class Module(ModuleManager.BaseModule):
|
|||
else:
|
||||
event["stderr"].write("Already tracking '%s'" % word)
|
||||
|
||||
@utils.hook("received.command.trackedwords")
|
||||
def tracked_words(self, event):
|
||||
"""
|
||||
:help: List which words are being tracked on the current network
|
||||
"""
|
||||
event["stdout"].write("Tracked words: %s" % ",".join(
|
||||
event["server"].get_setting("tracked-words", [])))
|
||||
|
||||
@utils.hook("received.command.wordusers", min_args=1)
|
||||
def word_users(self, event):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue