19 #ifndef IRCCD_JS_API_HPP
20 #define IRCCD_JS_API_HPP
29 #include <string_view>
66 api() noexcept = default;
71 virtual ~
api() noexcept = default;
78 virtual auto
get_name() const noexcept ->
std::string_view = 0;
93 #endif // !IRCCD_JS_API_HPP
Javascript plugins for irccd.
Definition: plugin.hpp:44
virtual auto get_name() const noexcept -> std::string_view=0
virtual void load(daemon::bot &bot, js::plugin &plugin)=0
Javascript API module.
Definition: api.hpp:51
Parent namespace.
Definition: acceptor.hpp:43
std::function< std::unique_ptr< api >()> constructor
Command constructor factory.
Definition: api.hpp:56
static auto registry() noexcept -> const std::vector< constructor > &
Registry of all commands.