3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02: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 Carp ();
use PBot::HashObject;
use Time::Duration qw/duration/;
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->{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->{rankcmd} = Plugins::Spinach::Rank->new(pbot => $self->{pbot}, channel => $self->{channel}, filename => $self->{stats_filename});
$self->create_states;
$self->load_questions;
$self->load_stopwords;
$self->create_states();
$self->load_questions();
$self->load_stopwords();
$self->{choosecategory_max_count} = 4;
$self->{picktruth_max_count} = 4;
@ -1019,7 +1019,7 @@ sub spinach_cmd {
sub spinach_timer {
my $self = shift;
$self->run_one_state;
$self->run_one_state();
}
sub player_left {