mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Update version factoid when using refresh
This commit is contained in:
parent
2a6f77288e
commit
926369e35b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user