csbot.plugins.last module

class csbot.plugins.last.Last(bot)[source]

Bases: csbot.plugin.Plugin

Utility plugin to record the last message (and time said) of a user. Records both messages and actions individually, and allows querying on either.

db

Descriptor for plugin attributes that get (and cache) a value from another plugin.

See Plugin.use().

last(nick, channel=None, msgtype=None)[source]

Get the last thing said (including actions) by a given nick, optionally filtering by channel.

last_message(nick, channel=None)[source]

Get the last message sent by a nick, optionally filtering by channel.

last_action(nick, channel=None)[source]

Get the last action sent by a nick, optionally filtering by channel.

last_command(nick, channel=None)[source]

Get the last command sent by a nick, optionally filtering by channel.

record_message(event)[source]

Record the receipt of a new message.

record_command(event)[source]

Record the receipt of a new command.

record_action(event)[source]

Record the receipt of a new action.

record(event, nick, channel, msgtype, msg)[source]

Record a new message, of a given type.

show_seen(event)[source]