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

Reduce pseudo-AI typing delay

This commit is contained in:
Pragmatic Software 2015-04-13 15:41:11 -07:00
parent b9b0a55b4e
commit 9ff76ad500

View File

@ -274,7 +274,7 @@ sub handle_result {
}
if ($use_output_queue) {
my $delay = (rand 10) + 5; # initial delay for reading/processing user's message
my $delay = (rand 5) + 5; # initial delay for reading/processing user's message
$delay += (length $line) / 7; # additional delay of 7 characters per second typing speed
my $message = {
nick => $nick, user => $user, host => $host, command => $command,