X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sid%2Flog.py;h=278be3d505ebbe63d7dbdfcbe108eec57b1dbf66;hb=ce3cd5d64e51d2075237b909762a1ed0459eaf80;hp=f3f45e707af4bcef5611a4ffebf5c02927d1a7bd;hpb=b11971d184420bc764aa767664c1239e03c9ba25;p=sid.git diff --git a/sid/log.py b/sid/log.py index f3f45e7..278be3d 100644 --- a/sid/log.py +++ b/sid/log.py @@ -23,7 +23,10 @@ from .plugin import Plugin, botcmd class Log(Plugin): - """Logs presence. + """Logs group chat participant presence. + + The account running the bot need at least room moderation right to log + participants JIDs (fallback to nickname). """ throttle_ts = int(time())-30 @@ -67,8 +70,9 @@ class Log(Plugin): @botcmd(hidden=True) def write(self, message, args): - """ - **command** (hidden) ``!write`` : Writes log to file (use mktemp and return file location as MUC message)""" + """Dump/save room presences log + + ``!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 +90,7 @@ class Log(Plugin): @botcmd(hidden=True) def dump(self, message, args): - """**command** (hidden) ``!dump`` : Dumps log as MUC message""" + """``!dump`` : Dumps log as MUC message""" self.reply(message, self._format_log())