mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
Factoids: remove version
factoid
This commit is contained in:
parent
9a79d025e9
commit
7feb528024
@ -25,7 +25,6 @@ use POSIX qw(strftime);
|
|||||||
use Text::ParseWords;
|
use Text::ParseWords;
|
||||||
use JSON;
|
use JSON;
|
||||||
|
|
||||||
use PBot::VERSION qw/version/;
|
|
||||||
use PBot::FactoidCommands;
|
use PBot::FactoidCommands;
|
||||||
use PBot::FactoidModuleLauncher;
|
use PBot::FactoidModuleLauncher;
|
||||||
use PBot::DualIndexHashObject;
|
use PBot::DualIndexHashObject;
|
||||||
@ -79,13 +78,6 @@ sub load_factoids {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$self->{pbot}->{logger}->log(" " . ($text + $regex + $modules) . " factoids loaded ($text text, $regex regexs, $modules modules).\n");
|
$self->{pbot}->{logger}->log(" " . ($text + $regex + $modules) . " factoids loaded ($text text, $regex regexs, $modules modules).\n");
|
||||||
$self->add_default_factoids();
|
|
||||||
}
|
|
||||||
|
|
||||||
sub add_default_factoids {
|
|
||||||
my $self = shift;
|
|
||||||
my $version = version();
|
|
||||||
$self->add_factoid('text', '.*', $self->{pbot}->{registry}->get_value('irc', 'botnick'), 'version', "/say $version", 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub save_factoids {
|
sub save_factoids {
|
||||||
|
Loading…
Reference in New Issue
Block a user