Irccd main instance.
More...
#include <bot.hpp>
◆ bot()
irccd::daemon::bot::bot |
( |
boost::asio::io_service & |
service, |
|
|
std::string |
config = "" |
|
) |
| |
Constructor.
This only create a barebone irccd instance.
- Parameters
-
service | the service |
config | the optional path to the configuration. |
- See also
- load_all
-
load_config
◆ ~bot()
irccd::daemon::bot::~bot |
( |
| ) |
|
◆ get_config()
auto irccd::daemon::bot::get_config |
( |
| ) |
const -> const config & |
|
noexcept |
Get the current configuration.
- Returns
- the configuration
◆ get_log() [1/2]
auto irccd::daemon::bot::get_log |
( |
| ) |
const -> const logger::sink & |
|
noexcept |
Access the logger.
- Returns
- the logger
◆ get_log() [2/2]
Overloaded function.
- Returns
- the logger
◆ get_plugins()
Access the plugin service.
- Returns
- the service
◆ get_rules()
Access the rule service.
- Returns
- the service
◆ get_servers()
Access the server service.
- Returns
- the service
◆ get_service() [1/2]
auto irccd::daemon::bot::get_service |
( |
| ) |
const -> const boost::asio::io_service & |
|
noexcept |
Get the underlying io service.
- Returns
- the service
◆ get_service() [2/2]
auto irccd::daemon::bot::get_service |
( |
| ) |
-> boost::asio::io_service & |
|
noexcept |
Overloaded function.
- Returns
- the service
◆ get_transports()
Access the transport service.
- Returns
- the service
◆ load()
void irccd::daemon::bot::load |
( |
| ) |
|
|
noexcept |
Load and re-apply the configuration to the daemon.
◆ set_config()
void irccd::daemon::bot::set_config |
( |
config |
cfg | ) |
|
|
noexcept |
Set the configuration.
- Parameters
-
◆ set_log()
void irccd::daemon::bot::set_log |
( |
std::unique_ptr< logger::sink > |
sink | ) |
|
|
noexcept |
Set the logger.
- Precondition
- sink != nullptr
- Parameters
-
The documentation for this class was generated from the following file: