3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-02-08 18:44:17 +01:00

Commands: restore accidentally removed use statements

This commit is contained in:
Pragmatic Software 2020-01-23 22:46:41 -08:00
parent ba1eb9c745
commit 61d5c6dd5f
2 changed files with 7 additions and 5 deletions

View File

@ -19,6 +19,8 @@ use feature 'unicode_strings';
use base 'PBot::Registerable'; use base 'PBot::Registerable';
use Carp ();
use PBot::HashObject;
use Time::Duration qw/duration/; use Time::Duration qw/duration/;
sub new { sub new {

View File

@ -67,14 +67,14 @@ sub initialize {
$self->{stats_filename} = $self->{pbot}->{registry}->get_value('general', 'data_dir') . '/spinach/stats.sqlite'; $self->{stats_filename} = $self->{pbot}->{registry}->get_value('general', 'data_dir') . '/spinach/stats.sqlite';
$self->{metadata} = PBot::HashObject->new(pbot => $self->{pbot}, name => 'Spinach Metadata', filename => $self->{metadata_filename}); $self->{metadata} = PBot::HashObject->new(pbot => $self->{pbot}, name => 'Spinach Metadata', filename => $self->{metadata_filename});
$self->load_metadata; $self->load_metadata();
$self->{stats} = Plugins::Spinach::Stats->new(pbot => $self->{pbot}, filename => $self->{stats_filename}); $self->{stats} = Plugins::Spinach::Stats->new(pbot => $self->{pbot}, filename => $self->{stats_filename});
$self->{rankcmd} = Plugins::Spinach::Rank->new(pbot => $self->{pbot}, channel => $self->{channel}, filename => $self->{stats_filename}); $self->{rankcmd} = Plugins::Spinach::Rank->new(pbot => $self->{pbot}, channel => $self->{channel}, filename => $self->{stats_filename});
$self->create_states; $self->create_states();
$self->load_questions; $self->load_questions();
$self->load_stopwords; $self->load_stopwords();
$self->{choosecategory_max_count} = 4; $self->{choosecategory_max_count} = 4;
$self->{picktruth_max_count} = 4; $self->{picktruth_max_count} = 4;
@ -1019,7 +1019,7 @@ sub spinach_cmd {
sub spinach_timer { sub spinach_timer {
my $self = shift; my $self = shift;
$self->run_one_state; $self->run_one_state();
} }
sub player_left { sub player_left {