diff options
| author | 2018-10-18 12:53:27 +0100 | |
|---|---|---|
| committer | 2018-10-18 12:53:27 +0100 | |
| commit | 226d835374b826d1038b8d729bd5ba286b0edded (patch) | |
| tree | 663d9ba284c293887f6ce7f2d4fd1adae486496f /modules/words.py | |
| parent | Coin amount is the second arg to !givecoins (diff) | |
| signature | ||
Add !trackedwords in modules/words.py
Diffstat (limited to 'modules/words.py')
| -rw-r--r-- | modules/words.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/words.py b/modules/words.py index b7e3e45c..486a5fed 100644 --- a/modules/words.py +++ b/modules/words.py @@ -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): """ |
