App::B...uggable(3pm)
π App::B...uggable β the manual page, but make it bestie π
okay so this is the App::B...uggable(3pm) page, and it lives in the User Contributed Perl Documentation section of your manual, so you already know it's the community-made, handcrafted, artisanal kind of docs. sit down, grab a boba, we're doing this π§β¨
β¨ NAME β¨
App::Bot::BasicBot::Pluggable β bestie, it's the base class for bot applications. that's the whole vibe. it's the foundation, the blueprint, the main character skeleton that your bot gets built on top of. π
πΈ VERSION πΈ
version 1.30 β no cap, that's the number. π
π¦ SYNOPSIS π¦
here's the whole thing in action, and yes we are copying it exactly, character for character, because details are sacred:
my bot = App::Bot::BasicBot::Pluggable( modules => [ 'Karma' ] )
$bot->run();
look at it go. iconic. π
π DESCRIPTION π
so here's the tea β β this module is basically intended as a base class for Bot::BasicBot::Pluggable frontends. it's not out here doing the whole job by itself, it's the supporting structure, the scaffolding, the bones of the operation. π¦΄β¨
and the way you configure it? its attributes can be set by command line options or a configuration file. that's it, that's the flex. two whole doors into the same room, pick whichever one sparks joy. πͺπͺ
π ATTRIBUTES π
okay so all of the attributes listed right after this are documented in the manpage of bot-basicbot-pluggable. that's the official source of truth, go read it. π
and here's the little transformation trick you need: just replace all dashes with underscores. that's the whole conversion. --some-thing becomes some_thing. periodt. π
here's the full list, every single one, not skipping a single name because we don't do that here:
servernickcharsetpasswordportlist_moduleslist_storesloglevellogconfigconfigfilemodule
that's all eleven. count them. we did not lose one. π«Ά
π₯ METHODS π₯
π run
so run is the method, and here's exactly how it behaves:
- if
list_modulesorlist_storesare set to a true value, then the according list gets printed to stdout. that's it, it just shows you the list and you vibe with the information. πβ¨ - otherwise β and this is the "we're actually doing stuff" branch β the
runmethod of the bot specified by thebot_classmethod is called. yes,runcallingrun. it's giving recursion-adjacent energy but it's just delegating to the bot class, don't overthink it. π
lowkey important: that's an either/or. lists out, or the bot runs. not both. pick your lane bestie. π£οΈ
π AUTHOR π
Mario Domgoergen <mdom@cpan.org> β thank you for your service, king. ππ
π LICENSE π
this program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so like. go forth. share it. remix it. it's free free. ποΈ
and that's the whole page bestie!! π written up against perl v5.40.0, dated 2024-08-24, and yeah the footer name is the same cute little truncated App::B...uggable(3pm) because the manpage header has a character limit and honestly? relatable. we've all been there. π«Άβ¨ go build a bot, ily, bye!! πΈπ¦π
π¦ where this page comes from
- ubuntu resolute: libbot-basicbot-pluggable-perl 1.30+ds1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbot-basicbot-pluggable-perl 1.30+ds1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms