Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 3ff95db5db9835b2f4313c74c1f1a37f6e997079
  • master par défaut protégée
2 résultats

shitpostbot5k.py

  • query.pm 2,55 Kio
    package PlayBot::commands::get::query;
    
    use strict;
    use warnings;
    use utf8;
    
    use Moose;
    use overload '~~' => \&_equals;
    use Scalar::Util qw(looks_like_number);
    
    has 'query' => (
        is          => 'ro',
        isa         => 'Str',
        required    => 1
    );
    
    has 'chan' => (
        is          => 'ro',
        isa         => 'Str',
        required    => 1
    );
    
    has 'is_global' => (
        is          => 'ro',
        isa         => 'Bool',
        lazy        => 1,
        builder     => '_build_is_global',
        init_arg    => undef
    );
    
    has 'force' => (
        is          => 'ro',
        isa         => 'Bool',
        lazy        => 1,
        builder     => '_build_force',
        init_arg    => undef
    );
    
    has 'tags' => (
        is          => 'ro',
        isa         => 'ArrayRef[Str]',
        lazy        => 1,
        builder     => '_build_tags',
        init_arg    => undef
    );
    
    has 'words' => (
        is          => 'ro',
        isa         => 'ArrayRef[Str]',
        lazy        => 1,
        builder     => '_build_words',
        init_arg    => undef
    );
    
    has 'id' => (
        is          => 'ro',
        isa         => 'Int',
        lazy        => 1,
        builder     => '_build_id',
        init_arg    => undef
    );
    
    has 'date' => (
        is          => 'ro',
        isa         => 'Int',
        lazy        => 0,
        builder     => '_build_date',
        init_arg    => undef,
    );