irccd
3.0.3
|
Javascript plugins for irccd. More...
#include <plugin.hpp>
Public Member Functions | |
plugin (std::string id, std::string path) | |
auto | get_context () noexcept -> duk::context & |
void | open () |
auto | get_name () const noexcept -> std::string_view override |
auto | get_author () const noexcept -> std::string_view override |
auto | get_license () const noexcept -> std::string_view override |
auto | get_summary () const noexcept -> std::string_view override |
auto | get_version () const noexcept -> std::string_view override |
auto | get_options () const -> map override |
void | set_options (const map &map) override |
auto | get_templates () const -> map override |
void | set_templates (const map &map) override |
auto | get_paths () const -> map override |
void | set_paths (const map &map) override |
void | handle_command (daemon::bot &bot, const daemon::message_event &event) override |
void | handle_connect (daemon::bot &bot, const daemon::connect_event &event) override |
void | handle_disconnect (daemon::bot &bot, const daemon::disconnect_event &event) override |
void | handle_invite (daemon::bot &bot, const daemon::invite_event &event) override |
void | handle_join (daemon::bot &bot, const daemon::join_event &event) override |
void | handle_kick (daemon::bot &bot, const daemon::kick_event &event) override |
void | handle_load (daemon::bot &bot) override |
void | handle_message (daemon::bot &bot, const daemon::message_event &event) override |
void | handle_me (daemon::bot &bot, const daemon::me_event &event) override |
void | handle_mode (daemon::bot &bot, const daemon::mode_event &event) override |
void | handle_names (daemon::bot &bot, const daemon::names_event &event) override |
void | handle_nick (daemon::bot &bot, const daemon::nick_event &event) override |
void | handle_notice (daemon::bot &bot, const daemon::notice_event &event) override |
void | handle_part (daemon::bot &bot, const daemon::part_event &event) override |
void | handle_reload (daemon::bot &bot) override |
void | handle_topic (daemon::bot &bot, const daemon::topic_event &event) override |
void | handle_unload (daemon::bot &bot) override |
void | handle_whois (daemon::bot &bot, const daemon::whois_event &event) override |
![]() | |
plugin (std::string id) noexcept | |
virtual | ~plugin ()=default |
auto | get_id () const noexcept -> const std::string & |
Static Public Attributes | |
static const std::string_view | config_property {DUK_HIDDEN_SYMBOL("config")} |
static const std::string_view | templates_property {DUK_HIDDEN_SYMBOL("templates")} |
static const std::string_view | paths_property {DUK_HIDDEN_SYMBOL("paths")} |
Additional Inherited Members | |
![]() | |
using | map = std::unordered_map< std::string, std::string > |
Javascript plugins for irccd.
irccd::js::plugin::plugin | ( | std::string | id, |
std::string | path | ||
) |
Constructor.
id | the plugin id |
path | the path to the plugin |
|
overridevirtualnoexcept |
|
noexcept |
Access the Duktape context.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtual |
|
overridevirtual |
|
overridevirtualnoexcept |
|
overridevirtual |
|
overridevirtualnoexcept |
|
overridevirtual |
On channel message. This event will call onMessage or onCommand if the messages starts with the command character plus the plugin name.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
On successful connection.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
On disconnection.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
On invitation.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
On CTCP Action.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
On channel message.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
On user mode change.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
On names listing.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
On nick change.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
On user notice.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
On topic change.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
|
overridevirtual |
|
overridevirtual |
On whois information.
bot | the irccd instance |
event | the event |
Reimplemented from irccd::daemon::plugin.
void irccd::js::plugin::open | ( | ) |
Open the script file associated.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
inlinestatic |
Global property where to read/write plugin configuration (object).
|
inlinestatic |
Global property where paths are defined (object).
|
inlinestatic |
Global property where to read/write plugin templates (object).