csbot.core module¶
-
class
csbot.core.
Bot
(config=None, *, plugins: Sequence[Type[csbot.plugin.Plugin]] = None, loop=None)[source]¶ Bases:
csbot.plugin.SpecialPlugin
,csbot.irc.IRCClient
-
class
Config
(raw_data=None, trusted_data=None, deserialize_mapping=None, init=True, partial=True, strict=True, validate=False, app_data=None, lazy=False, **kwargs)[source]¶ Bases:
csbot.config.Config
-
ircv3
= <BooleanType() instance on Config as 'ircv3'>¶
-
nickname
= <StringType() instance on Config as 'nickname'>¶
-
username
= <StringType() instance on Config as 'username'>¶
-
realname
= <StringType() instance on Config as 'realname'>¶
-
auth_method
= <StringType() instance on Config as 'auth_method'>¶
-
password
= <StringType() instance on Config as 'password'>¶
-
irc_host
= <StringType() instance on Config as 'irc_host'>¶
-
irc_port
= <IntType() instance on Config as 'irc_port'>¶
-
command_prefix
= <StringType() instance on Config as 'command_prefix'>¶
-
channels
= <WordList(StringType) instance on Config as 'channels'>¶
-
plugins
= <WordList(StringType) instance on Config as 'plugins'>¶
-
use_notice
= <IntType() instance on Config as 'use_notice'>¶
-
client_ping
= <IntType() instance on Config as 'client_ping'>¶
-
bind_addr
= <StringType() instance on Config as 'bind_addr'>¶
-
rate_limit_period
= <IntType() instance on Config as 'rate_limit_period'>¶
-
rate_limit_count
= <IntType() instance on Config as 'rate_limit_count'>¶
-
-
available_plugins
= None¶ Dictionary containing available plugins for loading, using straight.plugin to discover plugin classes under a namespace.
-
line_sent
(line: str)[source]¶ Callback for sent raw IRC message.
Subclasses can implement this to get access to the actual message that was sent (which may have been truncated from what was passed to
send_line()
).
-
recent_messages
¶
-
on_action
(user, channel, message)[source]¶ Received CTCP ACTION. Common enough to deserve its own event.
-
on_names
(channel, names, raw_names)[source]¶ Called when the NAMES list for a channel has been received.
-
connection_lost
(exc)[source]¶ Handle a broken connection by attempting to reconnect.
Won’t reconnect if the broken connection was deliberate (i.e.
close()
was called).
-
class