irccd
3.0.3
|
Mock plugin. More...
#include <mock_plugin.hpp>
Public Member Functions | |
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 & |
![]() | |
void | push (std::string name, args args={}) const |
auto | find (const std::string &name) const -> std::vector< args > |
void | clear (const std::string &name) const noexcept |
void | clear () const noexcept |
auto | empty () const noexcept -> bool |
Additional Inherited Members | |
![]() | |
using | map = std::unordered_map< std::string, std::string > |
![]() | |
using | args = std::vector< std::any > |
Functions arguments. More... | |
using | functions = std::unordered_map< std::string, std::vector< args > > |
Map of all functions. More... | |
Mock plugin.
|
overridevirtualnoexcept |
|
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.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |