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
1 changed files with 5 additions and 0 deletions

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;
}