Convos::Core - TODO
TODO
Holds a Convos::Archive::File object.
Holds a Mojo::Log object.
Holds a Mojo::Redis object.
$self->control($command, $cb);
Used to issue a control command.
Will fetch connection information from the database and try to connect to them.
$self->add_connection({ login => $str, name => $str, nick => $str, server => $str, # irc_server[:port] }, $callback);
Add a new connection to redis. Will create a new connection id and set all the keys in the %connection hash
$self->update_connection({ login => $str, name => $str, nick => $str, server => $str, # irc_server[:port] }, $callback);
Update a connection's settings. This might issue a reconnect or issue IRC commands to reflect the changes.
$self->delete_connection({ login => $str, name => $str, }, $cb);
$self = $self->delete_user( { login => $str }, sub { my ($self, $err) = @_; ... }, );
This method will delete a user and all the conversations, connections, and related data. It will also stop all the connections.
$self->ctrl_stop($login, $server);
Stop a connection by connection id.
$self->ctrl_restart($login, $server);
Restart a connection by connection id.
Start a single connection by connection id.
$self->login({ login => $str, password => $str }, $callback);
Will call callback after authenticating the user. $callback will receive either:
$callback
$callback->($self, ''); # success $callback->($self, 'error message'); # on error
See Convos.
Jan Henning Thorsen
Marcus Ramberg
To install Convos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convos
CPAN shell
perl -MCPAN -e shell install Convos
For more information on module installation, please visit the detailed CPAN module installation guide.