App-RoboBot

 view release on metacpan or  search on metacpan

lib/App/RoboBot/Plugin/Bot/Auth.pm  view on Meta::CPAN

package App::RoboBot::Plugin::Bot::Auth;
$App::RoboBot::Plugin::Bot::Auth::VERSION = '4.004';
use v5.20;

use namespace::autoclean;

use Moose;
use MooseX::SetOnce;

use App::RoboBot::Nick;

extends 'App::RoboBot::Plugin';

=head1 bot.auth

Provides functions for managing authorization lists, denying and allowing
access to specific functions for specific users.

=cut

has '+name' => (
    default => 'Bot::Auth',
);

has '+description' => (
    default => 'Provides functions for managing authorization lists, denying and allowing access to specific functions for specific users.',
);

=head2 auth-default

=head3 Description

Sets the default permission mode for a function on the current network.

=head3 Usage

<function name> <"allow" | "deny">

=head3 Examples

    (auth-default set-alarm deny)

=head2 auth-allow

=head3 Description

Grants permission for a user to call the specified function.

=head3 Usage

<function name> <nick>

=head3 Examples

    (auth-allow set-alarm Beauford)

=head2 auth-deny

=head3 Description

Revokes permission for a user to the specified function.

=head3 Usage

<function name> <nick>



( run in 0.891 second using v1.01-cache-2.11-cpan-39bf76dae61 )