]> kaliko git repositories - sid.git/commitdiff
doc: Document log plugin
authorkaliko <kaliko@azylum.org>
Wed, 13 May 2020 09:01:04 +0000 (11:01 +0200)
committerkaliko <kaliko@azylum.org>
Wed, 13 May 2020 09:01:04 +0000 (11:01 +0200)
doc/source/plugins.rst
sid/log.py

index 1d74032006a54f8e6b75cd3149344ffd449860b3..cd0aa26458d5b0d94c46e55a51550976c8693d0a 100644 (file)
@@ -12,6 +12,10 @@ Generic plugins
     :members:
     :show-inheritance:
 
+.. automodule:: sid.log
+    :members:
+    :show-inheritance:
+
 Debian plugins
 --------------
 
index 746fad2f08c2eedf5694da6dd80be68d1b3b18f8..f3f45e707af4bcef5611a4ffebf5c02927d1a7bd 100644 (file)
@@ -68,7 +68,7 @@ class Log(Plugin):
     @botcmd(hidden=True)
     def write(self, message, args):
         """
-        **command** ``!write`` : Write log to file"""
+        **command** (hidden) ``!write`` : Writes log to file (use mktemp and return file location as MUC message)"""
         delay = int(time()) - Log.throttle_ts
         if delay < 30:
             self.log.debug('throttling file creation')
@@ -86,7 +86,7 @@ class Log(Plugin):
 
     @botcmd(hidden=True)
     def dump(self, message, args):
-        """**command**  ``!dump``  : dump log online!"""
+        """**command** (hidden)  ``!dump``  : Dumps log as MUC message"""
         self.reply(message, self._format_log())