mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-02 07:24:09 +01:00
Commands: restore accidentally removed use statements
This commit is contained in:
parent
ba1eb9c745
commit
61d5c6dd5f
@ -19,6 +19,8 @@ use feature 'unicode_strings';
|
||||
|
||||
use base 'PBot::Registerable';
|
||||
|
||||
use Carp ();
|
||||
use PBot::HashObject;
|
||||
use Time::Duration qw/duration/;
|
||||
|
||||
sub new {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user