3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +01:00

Update version factoid when using refresh

This commit is contained in:
Pragmatic Software 2018-01-22 22:48:47 -08:00
parent 2a6f77288e
commit 926369e35b

View File

@ -64,6 +64,11 @@ sub refresh {
return $@;
}
# update version factoid
use PBot::VERSION;
my $version = PBot::VERSION::BUILD_NAME . " revision " . PBot::VERSION::BUILD_REVISION . " " . PBot::VERSION::BUILD_DATE;
$self->{pbot}->{factoids}->{factoids}->hash->{'.*'}->{'version'}->{'action'} = "/say $version";
return $result;
}