csbot.plugins.logger module

class csbot.plugins.logger.Logger(bot)[source]

Bases: csbot.plugin.Plugin

raw_log = <Logger csbot.raw_log (WARNING)>
pretty_log = <Logger csbot.pretty_log (WARNING)>
raw_received(event)[source]
raw_sent(event)[source]
connected(event)[source]
disconnected(event)[source]
signedon(event)[source]
joined(event)[source]
left(event)[source]
user_joined(event)[source]
user_left(event)[source]
names(event)[source]
topic(event)[source]
privmsg(event)[source]
notice(event)[source]
action(event)[source]
quit(event)[source]
renamed(event)[source]
command(event)[source]

Tag a command to be registered by setup().

Additional keyword arguments are added to a metadata dictionary that gets stored with the command. This is a good place to put, for example, the help string for the command:

@Plugin.command('foo', help='foo: does something amazing')
def foo_command(self, e):
    pass