Source code for bot.log

# This file is in the Public Domain.

import ob


def __dir__():
    return ("Log", "log")


[docs]class Log(ob.Object): def __init__(self): super().__init__() self.txt = ""
[docs]def log(event): if not event.rest: event.reply("log <txt>") return o = Log() o.txt = event.rest o.save() event.reply("ok")