mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Reduce hint timeout to 20 seconds; don't update hint statistics if in hints-only mode
This commit is contained in:
parent
8508be2d72
commit
ada7f57141
@ -14,7 +14,7 @@ my $CJEOPARDY_DATA = 'data/cjeopardy.dat';
|
|||||||
my $CJEOPARDY_HINT = 'data/cjeopardy.hint';
|
my $CJEOPARDY_HINT = 'data/cjeopardy.hint';
|
||||||
|
|
||||||
my @hints = (0.90, 0.75, 0.50, 0.25, 0.10);
|
my @hints = (0.90, 0.75, 0.50, 0.25, 0.10);
|
||||||
my $timeout = 30;
|
my $timeout = 20;
|
||||||
|
|
||||||
my $nick = shift @ARGV;
|
my $nick = shift @ARGV;
|
||||||
my $channel = shift @ARGV;
|
my $channel = shift @ARGV;
|
||||||
@ -101,6 +101,8 @@ foreach my $index (@indices) {
|
|||||||
|
|
||||||
print "$color{lightgreen}Hint$color{reset}: $hint\n";
|
print "$color{lightgreen}Hint$color{reset}: $hint\n";
|
||||||
|
|
||||||
|
exit if $nick eq 'candide'; # hint_only_mode
|
||||||
|
|
||||||
my $scores = Scorekeeper->new;
|
my $scores = Scorekeeper->new;
|
||||||
$scores->begin;
|
$scores->begin;
|
||||||
my $id = $scores->get_player_id($nick, $channel);
|
my $id = $scores->get_player_id($nick, $channel);
|
||||||
|
Loading…
Reference in New Issue
Block a user