Bot::B...::Vars(3pm)

πŸ“¦
version 1.30 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

✨ NAME ✨

Bot::BasicBot::Pluggable::Module::Vars β€” bestie, this one's literally just about changing internal module variables πŸ’…


πŸŽ€ VERSION πŸŽ€

version 1.30 β€” yes queen, we're on 1.30 and she's thriving πŸ¦‹


🌸 SYNOPSIS 🌸

okay so here's the vibe πŸ‘‘: bot modules have variables, right? and those variables are how a module changes its own behaviour. this module β€” when you load it β€” gives people who are logged in and authenticated the power to change those variables straight from the IRC interface. no cap. πŸ”₯

and the variables that get set? they live in the object store, and they all start with user_. so like:

!set Module foo bar

will set the store key user_foo to bar in the Module module. it's giving "one command, whole personality shift" ✨


πŸ’– IRC USAGE πŸ’–

  • !set <module> <variable> <value> β€” sets the variable to value inside a given module. the module must be loaded though, bestie, no shortcuts. πŸ™ˆ
  • !unset <module> <variable> β€” unsets a variable, aka deletes it entirely, for the current load of the module. poof, gone, she's not coming back 😭
  • !vars <module> β€” lists out all the variables and their current values in a module. a lil inventory check, very main character energy ⭐

πŸ’œ AUTHOR πŸ’œ

Mario Domgoergen <mdom@cpan.org> 🫢

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


okay that's the whole page, we ate and left no crumbs πŸ“ this was documented in the User Contributed Perl Documentation corner of the world, brought to you by perl v5.40.0 on 2024-08-24, and honestly? iconic. periodt. πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from