« blib/lib/Bot/Cobalt/Plugin/OutputFilters/StripColor.pm
↑ Summary
blib/lib/Bot/Cobalt/IRC/Event/Mode.pm »
| 1 | package Bot::Cobalt::Core::Sugar; | ||||||||||
| 2 | 6 | $Bot::Cobalt::Core::Sugar::VERSION = '0.021003'; | |||||||||
| 3 | 6 | ▶ | use strictures 2; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 6 | ▶ | use parent 'Exporter::Tiny'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 6 | our @EXPORT = qw/ | |||||||||
| 9 | core | ||||||||||
| 10 | broadcast | ||||||||||
| 11 | logger | ||||||||||
| 12 | register | ||||||||||
| 13 | unregister | ||||||||||
| 14 | plugin_cfg | ||||||||||
| 15 | plugin_alias | ||||||||||
| 16 | irc_object | ||||||||||
| 17 | irc_context | ||||||||||
| 18 | /; | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub core { | ||||||||
|
Subroutine
core: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 21 | 0 | require Bot::Cobalt::Core; | |||||||||
| 22 | 0 | ▶ | confess "core sugar called but no Bot::Cobalt::Core instance" | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | unless Bot::Cobalt::Core->has_instance; | ||||||||||
| 24 | 0 | Bot::Cobalt::Core->instance | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 0 | ▶ | sub broadcast (@) { core->send_event(@_) } | ||||||||
|
Subroutine
broadcast: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 28 | |||||||||||
| 29 | 0 | ▶ | sub logger { core->log } | ||||||||
|
Subroutine
logger: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 30 | |||||||||||
| 31 | 0 | ▶ | sub register (@) { core->plugin_register( @_ ) } | ||||||||
|
Subroutine
register: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 32 | |||||||||||
| 33 | 0 | ▶ | sub unregister (@) { core->plugin_register( @_ ) } | ||||||||
|
Subroutine
unregister: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 34 | |||||||||||
| 35 | 0 | ▶ | sub plugin_cfg ($) { core->get_plugin_cfg( @_ ) } | ||||||||
|
Subroutine
plugin_cfg: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 36 | |||||||||||
| 37 | 0 | ▶ | sub plugin_alias ($) { core->get_plugin_alias( @_ ) } | ||||||||
|
Subroutine
plugin_alias: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 38 | |||||||||||
| 39 | 0 | ▶ | sub irc_object ($) { core->get_irc_object( @_ ) } | ||||||||
|
Subroutine
irc_object: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 40 | |||||||||||
| 41 | 0 | ▶ | sub irc_context ($) { core->get_irc_context( @_ ) } | ||||||||
|
Subroutine
irc_context: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 42 | |||||||||||
| 43 | 6 | 1; | |||||||||
| 44 | __END__ | ||||||||||