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

Reduce hint timeout to 20 seconds; don't update hint statistics if in hints-only mode

This commit is contained in:
Pragmatic Software 2015-05-22 03:57:30 -07:00
parent 8508be2d72
commit ada7f57141

View File

@ -14,7 +14,7 @@ my $CJEOPARDY_DATA = 'data/cjeopardy.dat';
my $CJEOPARDY_HINT = 'data/cjeopardy.hint';
my @hints = (0.90, 0.75, 0.50, 0.25, 0.10);
my $timeout = 30;
my $timeout = 20;
my $nick = shift @ARGV;
my $channel = shift @ARGV;
@ -101,6 +101,8 @@ foreach my $index (@indices) {
print "$color{lightgreen}Hint$color{reset}: $hint\n";
exit if $nick eq 'candide'; # hint_only_mode
my $scores = Scorekeeper->new;
$scores->begin;
my $id = $scores->get_player_id($nick, $channel);