irccd
3.0.3
|
Implementation of rule-edit transport command. More...
#include <transport_command.hpp>
Public Member Functions | |
auto | get_name () const noexcept -> std::string_view override |
void | exec (bot &bot, transport_client &client, const document &args) override |
![]() | |
virtual | ~transport_command ()=default |
Additional Inherited Members | |
![]() | |
using | document = json_util::deserializer |
Convenient alias. More... | |
using | constructor = std::function< std::unique_ptr< transport_command >()> |
Command constructor factory. More... | |
![]() | |
static auto | registry () noexcept -> const std::vector< constructor > & |
Registry of all commands. More... | |
Implementation of rule-edit transport command.
Replies:
|
overridevirtual |
Execute the command.
If the command throw an exception, the error is sent to the client so be careful about sensitive information.
The implementation should use client.success() or client.error() to send some data.
bot | the irccd instance |
client | the client |
args | the client arguments |
Implements irccd::daemon::transport_command.
|
overridevirtualnoexcept |
Return the command name, must not have spaces.
Implements irccd::daemon::transport_command.